public class ASTThrowStatement extends SimpleJavaNode
beginColumn, beginLine, children, endColumn, endLine, id, parent, parser
Constructor and Description |
---|
ASTThrowStatement(int id) |
ASTThrowStatement(JavaParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
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.
|
childrenAccept, jjtClose, jjtOpen, toString
appendElement, asXml, containsChildOfType, dump, dumpChildren, findChildNodesWithXPath, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstParentOfType, getImage, getLabel, getNthParent, getParentsOfType, getScope, hasImageEqualTo, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, setDataFlowNode, setImage, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent
public ASTThrowStatement(int id)
public ASTThrowStatement(JavaParser p, int id)
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