|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.ast.SimpleNode
net.sourceforge.pmd.ast.SimpleJavaNode
net.sourceforge.pmd.ast.ASTThrowStatement
Field Summary |
Fields inherited from class net.sourceforge.pmd.ast.SimpleNode |
beginColumn, beginLine, children, endColumn, endLine, id, parent, parser |
Constructor Summary | |
ASTThrowStatement(int id)
|
|
ASTThrowStatement(JavaParser p,
int id)
|
Method Summary | |
java.lang.String |
getFirstClassOrInterfaceTypeImage()
Gets the image of the first ASTClassOrInterfaceType child or null if none is found. |
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
Methods inherited from class net.sourceforge.pmd.ast.SimpleJavaNode |
childrenAccept, jjtClose, jjtOpen, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.pmd.ast.Node |
jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent |
Constructor Detail |
public ASTThrowStatement(int id)
public ASTThrowStatement(JavaParser p, int id)
Method Detail |
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class SimpleJavaNode
public final java.lang.String getFirstClassOrInterfaceTypeImage()
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 (?)
null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |