@Override public Node visit(final MethodCallExpr n, final A arg) { if (n.getScope() != null) { n.setScope((Expression) n.getScope().accept(this, arg)); } final List<Type> typeArgs = n.getTypeArgs(); if (typeArgs != null) { for (int i = 0; i < typeArgs.size(); i++) { typeArgs.set(i, (Type) typeArgs.get(i).accept(this, arg)); } removeNulls(typeArgs); } final List<Expression> args = n.getArgs(); if (args != null) { for (int i = 0; i < args.size(); i++) { args.set(i, (Expression) args.get(i).accept(this, arg)); } removeNulls(args); } return n; }
if (n.getTypeArgs() != null) { for (final Type t : n.getTypeArgs()) {
@Override public void visit(final MethodCallExpr n, final A arg) { visitComment(n.getComment(), arg); if (n.getScope() != null) { n.getScope().accept(this, arg); } if (n.getTypeArgs() != null) { for (final Type t : n.getTypeArgs()) { t.accept(this, arg); } } if (n.getArgs() != null) { for (final Expression e : n.getArgs()) { e.accept(this, arg); } } }
@Override public Boolean visit(final MethodCallExpr n1, final Node arg) { final MethodCallExpr n2 = (MethodCallExpr) arg; if (!nodeEquals(n1.getScope(), n2.getScope())) { return Boolean.FALSE; } if (!objEquals(n1.getName(), n2.getName())) { return Boolean.FALSE; } if (!nodesEquals(n1.getArgs(), n2.getArgs())) { return Boolean.FALSE; } if (!nodesEquals(n1.getTypeArgs(), n2.getTypeArgs())) { return Boolean.FALSE; } return Boolean.TRUE; }
public void visit(MethodCallExpr n, Object arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); printer.print("."); } printTypeArgs(n.getTypeArgs(), arg); printer.print(n.getName()); printArguments(n.getArgs(), arg); }
@Override public void visit(final MethodCallExpr n, final Object arg) { printJavaComment(n.getComment(), arg); if (n.getScope() != null) { n.getScope().accept(this, arg); printer.print("."); } printTypeArgs(n.getTypeArgs(), arg); printer.print(n.getName()); printArguments(n.getArgs(), arg); }
@Override public Node visit(MethodCallExpr _n, Object _arg) { Expression scope = cloneNodes(_n.getScope(), _arg); List<Type> typeArgs = visit(_n.getTypeArgs(), _arg); List<Expression> args = visit(_n.getArgs(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); MethodCallExpr r = new MethodCallExpr( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), scope, typeArgs, _n.getName(), args ); r.setComment(comment); return r; }