net.sourceforge.pmd.ast
public class ASTThrowStatement extends SimpleJavaNode
| Constructor Summary | |
|---|---|
| ASTThrowStatement(int id) | |
| ASTThrowStatement(JavaParser p, int id) | |
| Method Summary | |
|---|---|
| String | getFirstClassOrInterfaceTypeImage()
Gets the image of the first ASTClassOrInterfaceType child or null if none is found.
|
| Object | jjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor. |
null if none is found.
Note that when the statement is something like throw new Exception, this method
returns 'Exception' and if the throw statement is like throw e: this method returns 'e'.
A special case of returning null is when the throws is like throw this.e or
throw this.
TODO - use symbol table (?)
Returns: the image of the first ASTClassOrInterfaceType node found or null