All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.LabeledStatement

java.lang.Object
   |
   +----openjava.ptree.PtreeObject
           |
           +----openjava.ptree.NonLeaf
                   |
                   +----openjava.ptree.LabeledStatement

public class LabeledStatement
extends NonLeaf
implements Statement
The LabeledStatement class presents labeled statement node of parse tree

See Also:
NonLeaf, Statement, Identifier

Constructor Index

 o LabeledStatement(Identifier, Statement)
Allocates a new object.

Method Index

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

Constructors

 o LabeledStatement
 public LabeledStatement(Identifier name,
                         Statement statement)
Allocates a new 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.

Returns:
the label.
 o setLabel
 public void setLabel(Identifier label)
Sets the label.

Parameters:
label - the label to set.
 o getStatement
 public Statement getStatement()
Gets the statement of this labeled statement

Returns:
the statement.
 o setStatement
 public void setStatement(Statement stmt)
Sets the statement of this labeled statement

Returns:
stmt the statement to set.

All Packages  Class Hierarchy  This Package  Previous  Next  Index