|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Initializer
koala.dynamicjava.tree.InstanceInitializer
public class InstanceInitializer
This class represents the instance initializer statement nodes of the syntax tree
Constructor Summary | |
---|---|
InstanceInitializer(BlockStatement block)
Creates a new initializer statement |
|
InstanceInitializer(BlockStatement block,
SourceInfo si)
Creates a new initializer statement |
Method Summary | ||
---|---|---|
|
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 |
---|
public InstanceInitializer(BlockStatement block)
block
- the block
IllegalArgumentException
- if block is nullpublic InstanceInitializer(BlockStatement block, SourceInfo si)
block
- the block
IllegalArgumentException
- if block is nullMethod Detail |
---|
public <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor
in class Node
visitor
- the visitor to acceptpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |