@Override public R visit(final CatchClause n, final A arg) { { R result = n.getExcept().accept(this, arg); if (result != null) { return result; } } { R result = n.getCatchBlock().accept(this, arg); if (result != null) { return result; } } return null; }
@Override public Node visit(final CatchClause n, final A arg) { n.setExcept((MultiTypeParameter) n.getExcept().accept(this, arg)); n.setCatchBlock((BlockStmt) n.getCatchBlock().accept(this, arg)); return n; }
@Override public void visit(final CatchClause n, final A arg) { visitComment(n.getComment(), arg); n.getExcept().accept(this, arg); n.getCatchBlock().accept(this, arg); }
public void visit(CatchClause n, Object arg) { printer.print(" catch ("); n.getExcept().accept(this, arg); printer.print(") "); n.getCatchBlock().accept(this, arg); }
@Override public void visit(final CatchClause n, final Object arg) { printJavaComment(n.getComment(), arg); printer.print(" catch ("); n.getExcept().accept(this, arg); printer.print(") "); n.getCatchBlock().accept(this, arg); }
@Override public Node visit(CatchClause _n, Object _arg) { MultiTypeParameter except = cloneNodes(_n.getExcept(), _arg); BlockStmt catchBlock = cloneNodes(_n.getCatchBlock(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); CatchClause r = new CatchClause( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), except.getModifiers(), except.getAnnotations(), except.getTypes(), except.getId(), catchBlock ); r.setComment(comment); return r; }