|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CTL.Types.Tree<T>
public class Tree<T>
CTL implementation of a simple tree
Field Summary | |
---|---|
private Sibling |
root
Root node of the tree |
private TypeTree |
type
Type parameter for the data the siblings store |
Constructor Summary | |
---|---|
Tree(java.lang.Object data)
Generate a new Tree |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object moo)
Check if this object is equal to another one |
void |
read(SerialIn in)
Serial read function |
Sibling |
root()
Retrieve this tree's root node |
void |
setTypes(TypeTree[] types)
Template hack implementation |
Sibling |
sibl(java.lang.Object data)
Search for a certain node |
java.lang.String |
toString()
Retrieve a string representation of this object |
void |
write(SerialOut out)
Serial write function |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Sibling root
private TypeTree type
Constructor Detail |
---|
public Tree(java.lang.Object data) throws CTLException, java.lang.ClassNotFoundException
data
- Data associated to the root node
CTLException
java.lang.ClassNotFoundException
Method Detail |
---|
public void setTypes(TypeTree[] types)
setTypes
in interface TemplHack
types
- Type parameterspublic Sibling root()
public Sibling sibl(java.lang.Object data) throws CTLException
data
- Data to search for
CTLException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object moo)
equals
in class java.lang.Object
moo
- Object to compare to
public void read(SerialIn in) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
read
in interface Writable
in
- Input stream
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void write(SerialOut out) throws java.io.IOException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, CTLException
write
in interface Writable
out
- Output stream
java.io.IOException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
CTLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |