public class PointerTargetTree
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private PointerTargetTreeNode |
_rootNode |
| Constructor and Description |
|---|
PointerTargetTree(PointerTargetTreeNode rootNode) |
PointerTargetTree(Synset synset,
PointerTargetTreeNodeList list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Two PointerTargetTree's are equal if their root nodes are equal.
|
PointerTargetTreeNode[] |
findAll(PointerTarget target)
Find all nodes in the tree whose target is target
|
PointerTargetTreeNode[] |
findAll(PointerTargetTreeNode node)
Find all occurances of
node in the tree. |
PointerTargetTreeNode |
findFirst(PointerTarget target)
Find the first node in the tree whose target is target
|
PointerTargetTreeNode |
findFirst(PointerTargetTreeNode node)
Find the first occurance of
node in the tree. |
java.util.List |
getAllMatches(PointerTargetTreeNodeList.Operation opr)
Walk the tree and perform the operation
opr on each node. |
java.lang.Object |
getFirstMatch(PointerTargetTreeNodeList.Operation opr)
Walk the tree and perform the operation
opr on
each node. |
PointerTargetTreeNode |
getRootNode() |
void |
print() |
PointerTargetNodeList[] |
reverse()
Reverse this tree.
|
java.util.List |
toList()
Convert this tree to an List of PointerTargetNodeLists.
|
private PointerTargetTreeNode _rootNode
public PointerTargetTree(PointerTargetTreeNode rootNode)
public PointerTargetTree(Synset synset, PointerTargetTreeNodeList list)
public PointerTargetTreeNode getRootNode()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object getFirstMatch(PointerTargetTreeNodeList.Operation opr)
opr on
each node. Continues until either opr returns a non-null
value, or it reaches the last node in the tree.public java.util.List getAllMatches(PointerTargetTreeNodeList.Operation opr)
opr on each node.
Searchs the tree exhaustively and returns a List containing all nodes
that are returned by opr.public PointerTargetTreeNode findFirst(PointerTargetTreeNode node)
node in the tree.public PointerTargetTreeNode findFirst(PointerTarget target)
public PointerTargetTreeNode[] findAll(PointerTargetTreeNode node)
node in the tree.public PointerTargetTreeNode[] findAll(PointerTarget target)
public void print()
public PointerTargetNodeList[] reverse()
public java.util.List toList()