All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.TryStatement
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.NonLeaf
|
+----openjava.ptree.TryStatement
- public class TryStatement
- extends NonLeaf
- implements Statement, Ptree
The TryStatement
class represents
a try statement node of parse tree.
- See Also:
- Ptree, NonLeaf, Statement, StatementList, CatchList
-
TryStatement(StatementList, CatchList)
- Allocates a new TryStatement object.
-
TryStatement(StatementList, CatchList, StatementList)
- Allocates a new TryStatement object.
-
TryStatement(StatementList, StatementList)
- Allocates a new TryStatement object.
-
getBody()
- Gets the body of this try statement.
-
getCatchList()
- Gets the catch block list.
-
getFinallyBody()
- Gets the finally body.
-
setBody(StatementList)
- Sets the body of this try statement.
-
setCatchList(CatchList)
- Sets the catch block list.
-
setFinallyBody(StatementList)
- Sets the finally body.
-
writeCode()
- Writes the code this parse-tree presents for.
TryStatement
public TryStatement(StatementList stmts,
CatchList catchlist,
StatementList finallee)
- Allocates a new TryStatement object.
- Parameters:
- the - statement list of the body of this try statement.
- the - catch block list of this try statement.
- the - statement list of the finally block.
TryStatement
public TryStatement(StatementList stmts,
CatchList catchlist)
- Allocates a new TryStatement object.
- Parameters:
- the - statement list of the body of this try statement.
- the - catch block list of this try statement.
TryStatement
public TryStatement(StatementList stmts,
StatementList finallee)
- Allocates a new TryStatement object.
- Parameters:
- the - statement list of the body of this try statement.
- the - statement list of the finally block.
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getBody
public StatementList getBody()
- Gets the body of this try statement.
- Returns:
- the statement list of the body.
setBody
public void setBody(StatementList stmts)
- Sets the body of this try statement.
- Parameters:
- stmts - the statement list of the body to set.
getCatchList
public CatchList getCatchList()
- Gets the catch block list.
- Returns:
- the catch block list.
setCatchList
public void setCatchList(CatchList catchlist)
- Sets the catch block list.
- Parameters:
- catchlist - the catch block list.
getFinallyBody
public StatementList getFinallyBody()
- Gets the finally body.
- Returns:
- the statement list of finally body.
setFinallyBody
public void setFinallyBody(StatementList finallee)
- Sets the finally body.
- Parameters:
- finallee - the statement list of finally body.
All Packages Class Hierarchy This Package Previous Next Index