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

Constructor Index

 o CatchBlock(Parameter, StatementList)
Allocates a new CatchBlock object.

Method Index

 o getBody()
Gets the body of this catch block.
 o getParameter()
Gets the exception parameter of this catch block.
 o setBody(StatementList)
Sets the body of this catch block.
 o setParameter(Parameter)
Sets the exception parameter of this catch block.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o 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.

Methods

 o writeCode
 public void writeCode()
Writes the code this parse-tree presents for.

Overrides:
writeCode in class NonLeaf
 o getParameter
 public Parameter getParameter()
Gets the exception parameter of this catch block.

Returns:
the exception parameter.
 o setParameter
 public void setParameter(Parameter param)
Sets the exception parameter of this catch block.

Parameters:
tspec - the exception parameter.
 o getBody
 public StatementList getBody()
Gets the body of this catch block.

Returns:
the statement list of the body.
 o 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