|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
A node in a tree.
| Method Summary | |
|---|---|
List<Leaf> |
getLeaves()
Leaves. |
String |
getName()
Name of node. |
List<Node> |
getNodes()
Children Nodes. |
boolean |
read(ReadLine line,
State state)
Read this node from the given line, delegating to all leaves. |
void |
write(WriteLine line,
State state)
Write this node to the given line. |
| Method Detail |
|---|
String getName()
List<Leaf> getLeaves()
List<Node> getNodes()
Nodes.
boolean read(ReadLine line,
State state)
line - line to read fromstate - state to get values for leaves from
true if node could be read or false
otherwise
TreeException - if one of the delegated Leaf.read(ReadLine, State) fails
void write(WriteLine line,
State state)
line - line to write tostate - state to put values of leaves to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||