|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A read-only tree of objects, with positions.
Method Summary | |
PositionIterator |
children(Position v)
get an iterator of the children of a specified position. |
boolean |
isExternal(Position v)
is the node external (i.e. |
boolean |
isInternal(Position v)
is the node internal? |
boolean |
isRoot(Position v)
is this the root? |
Position |
parent(Position v)
get the parent of a specified position. |
Position |
root()
get the root of the tree. |
Methods inherited from interface InspectablePositionalContainer |
positions |
Methods inherited from interface InspectableContainer |
elements, isEmpty, size |
Method Detail |
public PositionIterator children(Position v)
v
- the position whose children we want.public boolean isExternal(Position v)
v
- the position of the node we want to know aboutpublic boolean isInternal(Position v)
v
- the position of the node we want to know aboutpublic boolean isRoot(Position v)
v
- the position of the node we're curious aboutpublic Position parent(Position v)
v
- the position whose parent we want.public Position root()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |