public class PointerTargetTree
extends java.lang.Object
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.
|
java.util.List<PointerTargetTreeNode> |
findAll(PointerTarget target)
Finds all nodes in the tree whose target is target.
|
java.util.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.
|
java.util.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() |
int |
hashCode() |
void |
print() |
java.util.List<PointerTargetNodeList> |
reverse()
Reverse this tree.
|
java.util.List<PointerTargetNodeList> |
toList()
Convert this tree to a list of PointerTargetNodeLists.
|
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.Object
public int hashCode()
hashCode
in class java.lang.Object
public PointerTargetTreeNode getFirstMatch(PointerTargetTreeNodeList.Operation opr)
opr
- operation to executepublic java.util.List<PointerTargetTreeNode> getAllMatches(PointerTargetTreeNodeList.Operation opr)
opr
- operation to executepublic PointerTargetTreeNode findFirst(PointerTargetTreeNode node)
node
- node to search forpublic PointerTargetTreeNode findFirst(PointerTarget target)
target
- target to search forpublic java.util.List<PointerTargetTreeNode> findAll(PointerTargetTreeNode node)
node
- node to search forpublic java.util.List<PointerTargetTreeNode> findAll(PointerTarget target)
target
- target to search forpublic void print()
public java.util.List<PointerTargetNodeList> reverse()
public java.util.List<PointerTargetNodeList> toList()