All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.CatchBlock
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.NonLeaf
|
+----openjava.ptree.CatchBlock
- public class CatchBlock
- extends NonLeaf
The CatchBlock class presents catch node of parse tree
- See Also:
- NonLeaf, TypeSpecifier, Identifier, StatementList
-
CatchBlock(Parameter, StatementList)
- Allocates a new CatchBlock object.
-
getBody()
- Gets the body of this catch block.
-
getParameter()
- Gets the exception parameter of this catch block.
-
setBody(StatementList)
- Sets the body of this catch block.
-
setParameter(Parameter)
- Sets the exception parameter of this catch block.
-
writeCode()
- Writes the code this parse-tree presents for.
CatchBlock
public CatchBlock(Parameter param,
StatementList stmts)
- Allocates a new CatchBlock object.
- Parameters:
- typespec - the exception type specifier.
- name - the exception variable name.
- stmts - the statement list of the body.
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getParameter
public Parameter getParameter()
- Gets the exception parameter of this catch block.
- Returns:
- the exception parameter.
setParameter
public void setParameter(Parameter param)
- Sets the exception parameter of this catch block.
- Parameters:
- tspec - the exception parameter.
getBody
public StatementList getBody()
- Gets the body of this catch block.
- Returns:
- the statement list of the body.
setBody
public void setBody(StatementList stmts)
- Sets the body of this catch block.
- Parameters:
- stmts - the statement list of the body.
All Packages Class Hierarchy This Package Previous Next Index