koala.dynamicjava.tree
Class InstanceInitializer

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Initializer
          extended by koala.dynamicjava.tree.InstanceInitializer
All Implemented Interfaces:
SourceInfo.Wrapper

public class InstanceInitializer
extends Initializer

This class represents the instance initializer statement nodes of the syntax tree

Version:
1.0 - 1999/05/27
Author:
Stephane Hillion

Constructor Summary
InstanceInitializer(BlockStatement block)
          Creates a new initializer statement
InstanceInitializer(BlockStatement block, SourceInfo si)
          Creates a new initializer statement
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 String toString()
          Implementation of toString for use in unit testing
 
Methods inherited from class koala.dynamicjava.tree.Initializer
getBlock, setBlock
 
Methods inherited from class koala.dynamicjava.tree.Node
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InstanceInitializer

public InstanceInitializer(BlockStatement block)
Creates a new initializer statement

Parameters:
block - the block
Throws:
IllegalArgumentException - if block is null

InstanceInitializer

public InstanceInitializer(BlockStatement block,
                           SourceInfo si)
Creates a new initializer statement

Parameters:
block - the block
Throws:
IllegalArgumentException - if block is null
Method Detail

acceptVisitor

public <T> T acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree

Specified by:
acceptVisitor in class Node
Parameters:
visitor - the visitor to accept

toString

public String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class Object