public String getName() { return parameter.getId().getName(); }
@Override public void visit(final Parameter n, final A arg) { visitComment(n.getComment(), arg); if (n.getAnnotations() != null) { for (final AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } n.getType().accept(this, arg); n.getId().accept(this, arg); }
@Override public R visit(final Parameter n, final A arg) { if (n.getAnnotations() != null) { for (final AnnotationExpr a : n.getAnnotations()) { { R result = a.accept(this, arg); if (result != null) { return result; } } } } { R result = n.getType().accept(this, arg); if (result != null) { return result; } } { R result = n.getId().accept(this, arg); if (result != null) { return result; } } return null; }
public void visit(Parameter n, Object arg) { printAnnotations(n.getAnnotations(), arg); printModifiers(n.getModifiers()); n.getType().accept(this, arg); if (n.isVarArgs()) { printer.print("..."); } printer.print(" "); n.getId().accept(this, arg); }
@Override public void visit(final Parameter n, final Object arg) { printJavaComment(n.getComment(), arg); printAnnotations(n.getAnnotations(), arg); printModifiers(n.getModifiers()); n.getType().accept(this, arg); if (n.isVarArgs()) { printer.print("..."); } printer.print(" "); n.getId().accept(this, arg); }
@Override public Node visit(Parameter _n, Object _arg) { List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg); Type type_ = cloneNodes(_n.getType(), _arg); VariableDeclaratorId id = cloneNodes(_n.getId(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); Parameter r = new Parameter( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), _n.getModifiers(), annotations, type_, _n.isVarArgs(), id ); r.setComment(comment); return r; }