/* * @see ASTVisitor#visit(ThrowStatement) */ @Override public boolean visit(ThrowStatement node) { this.fBuffer.append("throw "); // $NON-NLS-1$ node.getExpression().accept(this); this.fBuffer.append(";"); // $NON-NLS-1$ return false; }
/** * Builds a new {@link ThrowStatement} instance. * * @param expression the expression to throw * @return a new throw statement */ public ThrowStatement throw0(final Expression expression) { final ThrowStatement throwS = ast.newThrowStatement(); throwS.setExpression(expression); return throwS; }