@Override
 public void visit(final ExplicitConstructorInvocationStmt n, final A arg) {
   visitComment(n.getComment(), arg);
   if (!n.isThis() && n.getExpr() != null) {
     n.getExpr().accept(this, arg);
   }
   if (n.getTypeArguments() != null) {
     for (final Type t : n.getTypeArguments()) {
       t.accept(this, arg);
     }
   }
   if (n.getArgs() != null) {
     for (final Expression e : n.getArgs()) {
       e.accept(this, arg);
     }
   }
 }
Exemplo n.º 2
0
 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()) {}
     }
   }
 }