All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.ThrowStatement
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.NonLeaf
|
+----openjava.ptree.ThrowStatement
- public class ThrowStatement
- extends NonLeaf
- implements Statement
The ThrowStatement
class represents
a throw statement node of parse tree.
- See Also:
- Ptree, NonLeaf, Statement
-
ThrowStatement(Expression)
- Allocates a new ThrowStatement object.
-
getExpression()
- Gets the returned expression by this statement.
-
setExpression(Expression)
- Sets the returned expression by this statement.
-
writeCode()
- Writes the code this parse-tree presents for.
ThrowStatement
public ThrowStatement(Expression expr)
- Allocates a new ThrowStatement object.
- Parameters:
- expr - the expression to be throwed by this statement.
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getExpression
public Expression getExpression()
- Gets the returned expression by this statement.
- Returns:
- the expression to be returned by this statement.
setExpression
public void setExpression(Expression expr)
- Sets the returned expression by this statement.
- Parameters:
- expr - the expression to be returned by this statement.
All Packages Class Hierarchy This Package Previous Next Index