|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object CTL.Types.Tupel CTL.Types.Sibling<T>
public class Sibling<T>
An element of the CTL tree
Field Summary |
---|
Fields inherited from class CTL.Types.Tupel |
---|
data, type |
Constructor Summary | |
---|---|
Sibling(T data)
Generate a new Sibling |
Method Summary | |
---|---|
boolean |
append(java.lang.Object data)
Append a new Sibling to the subtree |
boolean |
append(Sibling sibl)
Append a new Sibling to the subtree |
java.lang.Object |
data()
Retrieve the data associated to this Sibling |
void |
read(OIStream in)
Serial read function |
Sibling |
search(java.lang.Object data)
Search for a certain Sibling in the sub tree of this node |
void |
setTypes(TypeTree[] types)
Template hack implementation |
java.lang.String |
toString()
Retrieve a String representation of this object |
Methods inherited from class CTL.Types.Tupel |
---|
equals, insert, item, length, read, setItem, type, write |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Sibling(T data) throws CTLException, java.lang.ClassNotFoundException
data
- Data which this object should store
CTLException
java.lang.ClassNotFoundException
Method Detail |
---|
public void setTypes(TypeTree[] types)
setTypes
in interface TemplHack
setTypes
in class Tupel
types
- Type parameterspublic Sibling search(java.lang.Object data) throws CTLException
data
- Data to search for
CTLException
public boolean append(java.lang.Object data) throws CTLException, java.lang.ClassNotFoundException
data
- Data to store
CTLException
java.lang.ClassNotFoundException
public boolean append(Sibling sibl) throws CTLException
sibl
- Sibling to append
CTLException
public java.lang.Object data() throws CTLException
CTLException
public java.lang.String toString()
toString
in class Tupel
public void read(OIStream in) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
in
- Input stream
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |