public void visit(ObjectCreationExpr n, Object arg) { if (n.getScope() != null) { n.getScope().accept(this, arg); } printTypeArgs(n.getTypeArgs(), arg); n.getType().accept(this, 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()) {} } } if (n.getAnonymousClassBody() != null) { printMembers(n.getAnonymousClassBody(), arg); } }