public class ASTThrowStatement extends AbstractJavaNode
parser
beginColumn, beginLine, childIndex, children, endColumn, endLine, id, parent
Constructor and Description |
---|
ASTThrowStatement(int id) |
ASTThrowStatement(JavaParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
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.
|
childrenAccept, comment, comment, getScope, jjtClose, jjtOpen, setScope, toString
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
public ASTThrowStatement(int id)
public ASTThrowStatement(JavaParser p, int id)
public Object jjtAccept(JavaParserVisitor visitor, Object data)
jjtAccept
in interface JavaNode
jjtAccept
in class AbstractJavaNode
public final 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
Copyright © 2002-2015 InfoEther. All Rights Reserved.