net.sourceforge.pmd.ast
Class ASTTryStatement

java.lang.Object
  |
  +--net.sourceforge.pmd.ast.SimpleNode
        |
        +--net.sourceforge.pmd.ast.ASTTryStatement
All Implemented Interfaces:
Node

public class ASTTryStatement
extends SimpleNode


Field Summary
 
Fields inherited from class net.sourceforge.pmd.ast.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTTryStatement(int id)
           
ASTTryStatement(JavaParser p, int id)
           
 
Method Summary
 java.util.List getCatchBlocks()
          Call hasCatch() before you call this method
 ASTBlock getFinallyBlock()
          Call hasFinally() before you call this method
 boolean hasCatch()
           
 boolean hasFinally()
           
 java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void setHasCatch()
           
 void setHasFinally()
           
 
Methods inherited from class net.sourceforge.pmd.ast.SimpleNode
childrenAccept, dump, dumpChildren, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getImage, getScope, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setImage, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTTryStatement

public ASTTryStatement(int id)

ASTTryStatement

public ASTTryStatement(JavaParser p,
                       int id)
Method Detail

setHasCatch

public void setHasCatch()

setHasFinally

public void setHasFinally()

hasCatch

public boolean hasCatch()

hasFinally

public boolean hasFinally()

getFinallyBlock

public ASTBlock getFinallyBlock()
Call hasFinally() before you call this method


getCatchBlocks

public java.util.List getCatchBlocks()
Call hasCatch() before you call this method


jjtAccept

public java.lang.Object jjtAccept(JavaParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode


Copyright © 2002-2003 Project Ultra*Log @ DARPA. All Rights Reserved.