net.sourceforge.pmd.lang.ast.Node, JavaNode, net.sourceforge.pmd.lang.symboltable.ScopedNodepublic class ASTCatchStatement extends AbstractJavaNode
"catch" "(" FormalParameter ")" Block
parser| Constructor | Description |
|---|---|
ASTCatchStatement(int id) |
|
ASTCatchStatement(JavaParser p,
int id) |
| Modifier and Type | Method | Description |
|---|---|---|
ASTBlock |
getBlock() |
Returns the Block node of this catch branch.
|
java.util.List<ASTType> |
getCaughtExceptionTypeNodes() |
Returns the list of type nodes denoting the exception types
caught by this catch block.
|
java.util.List<java.lang.Class<? extends java.lang.Exception>> |
getCaughtExceptionTypes() |
Returns the list of exception types caught by this catch block.
|
java.lang.String |
getExceptionName() |
Returns exception name caught by this catch block.
|
boolean |
isMulticatchStatement() |
Returns true if this node is a multi-catch statement,
that is, it catches several unrelated exception types
at the same time.
|
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data) |
Accept the visitor.
|
childrenAccept, comment, comment, getScope, getXPathNodeName, jjtClose, jjtOpen, setScopeappendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, toStringfindChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserDatapublic ASTCatchStatement(int id)
public ASTCatchStatement(JavaParser p, int id)
public java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
AbstractJavaNodejjtAccept in interface JavaNodejjtAccept in class AbstractJavaNodepublic boolean isMulticatchStatement()
catch (IllegalStateException | IllegalArgumentException e) {}
public ASTBlock getBlock()
public java.util.List<ASTType> getCaughtExceptionTypeNodes()
public java.util.List<java.lang.Class<? extends java.lang.Exception>> getCaughtExceptionTypes()
public java.lang.String getExceptionName()
Copyright © 2002–2018 PMD. All rights reserved.