Class ASTTryStatement
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.AbstractNode
-
- net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.TryStatement>
-
- net.sourceforge.pmd.lang.ecmascript.ast.ASTTryStatement
-
- All Implemented Interfaces:
Node,EcmascriptNode<org.mozilla.javascript.ast.TryStatement>
public class ASTTryStatement extends AbstractEcmascriptNode<org.mozilla.javascript.ast.TryStatement>
-
-
Field Summary
-
Fields inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
node
-
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, firstToken, id, lastToken, parent
-
-
Constructor Summary
Constructors Constructor Description ASTTryStatement(org.mozilla.javascript.ast.TryStatement tryStatement)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ASTCatchClausegetCatchClause(int index)EcmascriptNode<?>getFinallyBlock()intgetNumCatchClause()EcmascriptNode<?>getTryBlock()booleanhasCatch()booleanhasFinally()booleanisCatch()Deprecated.booleanisFinally()Deprecated.ObjectjjtAccept(EcmascriptParserVisitor visitor, Object data)Accept the visitor.-
Methods inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
childrenAccept, getJsDoc, getNode, getXPathNodeName, hasSideEffects, setTrailingCommaExists
-
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfAnyType, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetFirstToken, jjtGetId, jjtGetLastToken, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetFirstToken, jjtSetLastToken, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData, testingOnlySetBeginColumn, testingOnlySetBeginLine, testingOnlySetEndColumn, testingOnlySetEndLine, 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.lang.ast.Node
children, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getChild, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfAnyType, getFirstParentOfType, getImage, getIndexInParent, getNthParent, getNumChildren, getParent, getParentsOfType, getUserData, getUserMap, getXPathAttributesIterator, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetChildIndex, jjtSetParent, remove, removeChildAtIndex, setDataFlowNode, setImage, setUserData
-
-
-
-
Constructor Detail
-
ASTTryStatement
@Deprecated @InternalApi public ASTTryStatement(org.mozilla.javascript.ast.TryStatement tryStatement)
Deprecated.
-
-
Method Detail
-
jjtAccept
public Object jjtAccept(EcmascriptParserVisitor visitor, Object data)
Description copied from class:AbstractEcmascriptNodeAccept the visitor. *- Specified by:
jjtAcceptin interfaceEcmascriptNode<org.mozilla.javascript.ast.TryStatement>- Overrides:
jjtAcceptin classAbstractEcmascriptNode<org.mozilla.javascript.ast.TryStatement>
-
getTryBlock
public EcmascriptNode<?> getTryBlock()
-
isCatch
@Deprecated public boolean isCatch()
Deprecated.
-
hasCatch
public boolean hasCatch()
-
getNumCatchClause
public int getNumCatchClause()
-
getCatchClause
public ASTCatchClause getCatchClause(int index)
-
isFinally
@Deprecated public boolean isFinally()
Deprecated.
-
hasFinally
public boolean hasFinally()
-
getFinallyBlock
public EcmascriptNode<?> getFinallyBlock()
-
-