All Packages Class Hierarchy This Package Previous Next Index
Class openjava.ptree.BreakStatement
java.lang.Object
|
+----openjava.ptree.PtreeObject
|
+----openjava.ptree.NonLeaf
|
+----openjava.ptree.BreakStatement
- public class BreakStatement
- extends NonLeaf
- implements Statement
The BreakStatement
class represents
a break statement node of parse tree.
- See Also:
- Ptree, NonLeaf, Statement, Identifier
-
BreakStatement()
- Allocates a new BreakStatement object.
-
BreakStatement(Identifier)
- Allocates a new BreakStatement object.
-
getLabel()
- Gets the label of this break statement.
-
setLabel(Identifier)
- Sets the label of this break statement.
-
writeCode()
- Writes the code this parse-tree presents for.
BreakStatement
public BreakStatement(Identifier label)
- Allocates a new BreakStatement object.
- Parameters:
- label - the label of this break statemetn.
if this is null, break statement has no label.
BreakStatement
public BreakStatement()
- Allocates a new BreakStatement object.
writeCode
public void writeCode()
- Writes the code this parse-tree presents for.
- Overrides:
- writeCode in class NonLeaf
getLabel
public Identifier getLabel()
- Gets the label of this break statement.
- Returns:
- the label name.
If there is no label then this method returns null.
setLabel
public void setLabel(Identifier label)
- Sets the label of this break statement.
- Parameters:
- label - the label.
All Packages Class Hierarchy This Package Previous Next Index