|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Initializer
public class Initializer
| Field Summary | |
|---|---|
protected java.util.LinkedList<Traversable> |
children
|
protected Traversable |
parent
|
| Constructor Summary | |
|---|---|
protected |
Initializer()
|
|
Initializer(Expression value)
|
|
Initializer(java.util.List values)
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
static void |
defaultPrint(Initializer init,
java.io.OutputStream stream)
Prints an initializer to a stream. |
java.util.List<Traversable> |
getChildren()
Provides access to the children of this object as a list. |
Traversable |
getParent()
Provides access to the parent of this object. |
void |
print(java.io.OutputStream stream)
Print the code for the IR represented by the object. |
void |
removeChild(Traversable child)
Removes the specified child. |
void |
setChild(int index,
Traversable t)
Sets the indexth child of this object to t. |
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created objects will use the supplied method. |
void |
setParent(Traversable t)
Sets the parent of this object. |
void |
setPrintMethod(java.lang.reflect.Method m)
Overrides the print method for this object only. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Traversable parent
protected java.util.LinkedList<Traversable> children
| Constructor Detail |
|---|
protected Initializer()
public Initializer(Expression value)
public Initializer(java.util.List values)
| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Object
public static void defaultPrint(Initializer init,
java.io.OutputStream stream)
init - The initializer to print.stream - The stream on which to print the initializer.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<Traversable> getChildren()
Traversable
getChildren in interface Traversablepublic Traversable getParent()
Traversable
getParent in interface Traversablepublic void print(java.io.OutputStream stream)
Printable
print in interface Printablestream - The stream on which to print the data.public void removeChild(Traversable child)
Traversable
removeChild in interface Traversablechild - a reference to a child object that must match with ==.
public void setChild(int index,
Traversable t)
Traversable
setChild in interface Traversablepublic static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public void setParent(Traversable t)
Traversable
setParent in interface Traversablepublic void setPrintMethod(java.lang.reflect.Method m)
m - The new print method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||