public CatchClause(int exceptModifier, List<AnnotationExpr> exceptAnnotations, List<Type> exceptTypes, VariableDeclaratorId exceptId, BlockStmt catchBlock) { this(new MultiTypeParameter(exceptModifier, exceptAnnotations, exceptTypes, exceptId), catchBlock); }
public CatchClause(final int beginLine, final int beginColumn, final int endLine, final int endColumn, final int exceptModifier, final List<AnnotationExpr> exceptAnnotations, final List<Type> exceptTypes, final VariableDeclaratorId exceptId, final BlockStmt catchBlock) { super(beginLine, beginColumn, endLine, endColumn); setExcept(new MultiTypeParameter(beginLine, beginColumn, endLine, endColumn, exceptModifier, exceptAnnotations, exceptTypes, exceptId)); setCatchBlock(catchBlock); }
@Override public Node visit(MultiTypeParameter _n, Object _arg) { List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg); List<Type> types = visit(_n.getTypes(), _arg); VariableDeclaratorId id = cloneNodes(_n.getId(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); MultiTypeParameter r = new MultiTypeParameter( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), _n.getModifiers(), annotations, types, id ); r.setComment(comment); return r; }