net.sourceforge.pmd.lang.ecmascript.ast
Class ASTTryStatement

java.lang.Object
  extended by net.sourceforge.pmd.lang.ast.AbstractNode
      extended by net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode<org.mozilla.javascript.ast.TryStatement>
          extended by net.sourceforge.pmd.lang.ecmascript.ast.ASTTryStatement
All Implemented Interfaces:
Node, EcmascriptNode

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, children, endColumn, endLine, id, parent
 
Constructor Summary
ASTTryStatement(org.mozilla.javascript.ast.TryStatement tryStatement)
           
 
Method Summary
 ASTCatchClause getCatchClause(int index)
           
 EcmascriptNode getFinallyBlock()
           
 int getNumCatchClause()
           
 EcmascriptNode getTryBlock()
           
 boolean isCatch()
           
 boolean isFinally()
           
 Object jjtAccept(EcmascriptParserVisitor visitor, Object data)
          Accept the visitor.
 
Methods inherited from class net.sourceforge.pmd.lang.ecmascript.ast.AbstractEcmascriptNode
childrenAccept, getBeginColumn, getJsDoc, getNode, hasSideEffects, toString
 
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtClose, jjtGetChild, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
 
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
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtClose, jjtGetChild, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setDataFlowNode, setImage, setUserData
 

Constructor Detail

ASTTryStatement

public ASTTryStatement(org.mozilla.javascript.ast.TryStatement tryStatement)
Method Detail

jjtAccept

public Object jjtAccept(EcmascriptParserVisitor visitor,
                        Object data)
Accept the visitor.

Specified by:
jjtAccept in interface EcmascriptNode
Overrides:
jjtAccept in class AbstractEcmascriptNode<org.mozilla.javascript.ast.TryStatement>

getTryBlock

public EcmascriptNode getTryBlock()

isCatch

public boolean isCatch()

getNumCatchClause

public int getNumCatchClause()

getCatchClause

public ASTCatchClause getCatchClause(int index)

isFinally

public boolean isFinally()

getFinallyBlock

public EcmascriptNode getFinallyBlock()


Copyright © 2002-2012 InfoEther. All Rights Reserved.