public void visit(ExplicitConstructorInvocationStmt n, Object arg) { if (n.isThis()) { printTypeArgs(n.getTypeArgs(), arg); } else { if (n.getExpr() != null) { n.getExpr().accept(this, arg); } printTypeArgs(n.getTypeArgs(), arg); } if (n.getArgs() != null) { for (Iterator<Expression> i = n.getArgs().iterator(); i.hasNext(); ) { Expression e = i.next(); e.accept(this, arg); if (i.hasNext()) {} } } }
public void visit(ExplicitConstructorInvocationStmt n, A arg) { if (!n.isThis()) { if (n.getExpr() != null) { n.getExpr().accept(this, arg); } } if (n.getTypeArgs() != null) { for (Type t : n.getTypeArgs()) { t.accept(this, arg); } } if (n.getArgs() != null) { for (Expression e : n.getArgs()) { e.accept(this, arg); } } }