All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class openjava.ptree.InstanceInitializer

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

public class InstanceInitializer
extends NonLeaf
implements MemberDeclaration
The InstanceInitilizer class represents instance initializer block of parse tree.

See Also:
NonLeaf, MemberDeclaration, StatementList

Constructor Index

 o InstanceInitializer(StatementList)
Allocates a new object.

Method Index

 o getBody()
Gets the body of this instance initializer.
 o setBody(StatementList)
Sets the body of this instance initializer.
 o writeCode()
Writes the code this parse-tree presents for.

Constructors

 o InstanceInitializer
 public InstanceInitializer(StatementList block)
Allocates a new object.

Parameters:
stmts - the statement list of this instance initializer block

Methods

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

Overrides:
writeCode in class NonLeaf
 o getBody
 public StatementList getBody()
Gets the body of this instance initializer.

Returns:
statement list.
 o setBody
 public void setBody(StatementList stmts)
Sets the body of this instance initializer.

Parameters:
stmts - statement list to set.

All Packages  Class Hierarchy  This Package  Previous  Next  Index