public boolean visit(ThrowStatement node) { if (matches(node.getExpression().resolveTypeBinding())) { SimpleName name = fAST.newSimpleName("xxxxx"); // $NON-NLS-1$ name.setSourceRange(node.getStartPosition(), 5); fResult.add(name); } return super.visit(node); }
/* * @see ASTVisitor#visit(ThrowStatement) */ public boolean visit(ThrowStatement node) { this.fBuffer.append("throw "); // $NON-NLS-1$ node.getExpression().accept(this); this.fBuffer.append(";"); // $NON-NLS-1$ return false; }