Example #1
0
  @Override
  public Boolean visit(final VariableDeclarationExpr n1, final Node arg) {
    final VariableDeclarationExpr n2 = (VariableDeclarationExpr) arg;

    if (n1.getModifiers() != n2.getModifiers()) {
      return Boolean.FALSE;
    }

    if (!nodesEquals(n1.getAnnotations(), n2.getAnnotations())) {
      return Boolean.FALSE;
    }

    if (!nodeEquals(n1.getType(), n2.getType())) {
      return Boolean.FALSE;
    }

    if (!nodesEquals(n1.getVars(), n2.getVars())) {
      return Boolean.FALSE;
    }

    return Boolean.TRUE;
  }