edu.rice.cs.javalanglevels.tree
Class TryCatchStatement
java.lang.Object
edu.rice.cs.javalanglevels.tree.JExpression
edu.rice.cs.javalanglevels.tree.Statement
edu.rice.cs.javalanglevels.tree.TryCatchStatement
- All Implemented Interfaces:
- BodyItemI, JExpressionIF
- Direct Known Subclasses:
- NormalTryCatchStatement, TryCatchFinallyStatement
public abstract class TryCatchStatement
- extends Statement
Class TryCatchStatement, a component of the JExpressionIF composite hierarchy.
Note: null is not allowed as a value for any field.
- Version:
- Generated automatically by ASTGen at Sun Aug 28 23:01:27 CDT 2011
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TryCatchStatement
public TryCatchStatement(SourceInfo in_sourceInfo,
Block in_tryBlock,
CatchBlock[] in_catchBlocks)
- Constructs a TryCatchStatement.
- Throws:
java.lang.IllegalArgumentException - If any parameter to the constructor is null.
getTryBlock
public Block getTryBlock()
getCatchBlocks
public CatchBlock[] getCatchBlocks()
visit
public abstract <RetType> RetType visit(JExpressionIFVisitor<RetType> visitor)
- Specified by:
visit in interface JExpressionIF- Specified by:
visit in class Statement
visit
public abstract void visit(JExpressionIFVisitor_void visitor)
- Specified by:
visit in interface JExpressionIF- Specified by:
visit in class Statement
outputHelp
public abstract void outputHelp(TabPrintWriter writer)
- Specified by:
outputHelp in interface JExpressionIF- Specified by:
outputHelp in class Statement
generateHashCode
protected abstract int generateHashCode()
- Specified by:
generateHashCode in class Statement