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

Constructor Index

 o BreakStatement()
Allocates a new BreakStatement object.
 o BreakStatement(Identifier)
Allocates a new BreakStatement object.

Method Index

 o getLabel()
Gets the label of this break statement.
 o setLabel(Identifier)
Sets the label of this break statement.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o 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.
 o BreakStatement
 public BreakStatement()
Allocates a new BreakStatement object.

Methods

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

Overrides:
writeCode in class NonLeaf
 o 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.
 o 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