|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.data.list.PointerTargetTree
public class PointerTargetTree
A container for the root node of a pointer target tree.
Constructor Summary | |
---|---|
PointerTargetTree(PointerTargetTreeNode rootNode)
|
|
PointerTargetTree(Synset synset,
PointerTargetTreeNodeList list)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Two PointerTargetTree's are equal if their root nodes are equal. |
List<PointerTargetTreeNode> |
findAll(PointerTarget target)
Finds all nodes in the tree whose target is target. |
List<PointerTargetTreeNode> |
findAll(PointerTargetTreeNode node)
Finds all occurrences of node in the tree. |
PointerTargetTreeNode |
findFirst(PointerTarget target)
Finds the first node in the tree whose target is target. |
PointerTargetTreeNode |
findFirst(PointerTargetTreeNode node)
Finds the first occurrence of node in the tree. |
List<PointerTargetTreeNode> |
getAllMatches(PointerTargetTreeNodeList.Operation opr)
Walks the tree and performs the operation opr on each node. |
PointerTargetTreeNode |
getFirstMatch(PointerTargetTreeNodeList.Operation opr)
Walks the tree and performs the operation opr on each node. |
PointerTargetTreeNode |
getRootNode()
|
void |
print()
|
List<PointerTargetNodeList> |
reverse()
Reverse this tree. |
List<PointerTargetNodeList> |
toList()
Convert this tree to a list of PointerTargetNodeLists. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PointerTargetTree(PointerTargetTreeNode rootNode)
public PointerTargetTree(Synset synset, PointerTargetTreeNodeList list)
Method Detail |
---|
public PointerTargetTreeNode getRootNode()
public boolean equals(Object obj)
equals
in class Object
public PointerTargetTreeNode getFirstMatch(PointerTargetTreeNodeList.Operation opr)
opr
- operation to execute
public List<PointerTargetTreeNode> getAllMatches(PointerTargetTreeNodeList.Operation opr)
opr
- operation to execute
public PointerTargetTreeNode findFirst(PointerTargetTreeNode node)
node
- node to search for
public PointerTargetTreeNode findFirst(PointerTarget target)
target
- target to search for
public List<PointerTargetTreeNode> findAll(PointerTargetTreeNode node)
node
- node to search for
public List<PointerTargetTreeNode> findAll(PointerTarget target)
target
- target to search for
public void print()
public List<PointerTargetNodeList> reverse()
public List<PointerTargetNodeList> toList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |