|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.util.TypeCheckingList
net.didion.jwnl.data.list.PointerTargetNodeList
net.didion.jwnl.data.list.PointerTargetTreeNodeList
public class PointerTargetTreeNodeList
A list of PointerTargetTreeNode
s.
Nested Class Summary | |
---|---|
static class |
PointerTargetTreeNodeList.FindNodeOperation
Operation that is used for finding the specified node in a tree. |
static class |
PointerTargetTreeNodeList.FindTargetOperation
Operation that is used for finding the node(s) in a tree that have the specified PointerTarget . |
static interface |
PointerTargetTreeNodeList.Operation
Operation that is performed on the nodes of a tree or list. |
Nested classes/interfaces inherited from class net.didion.jwnl.util.TypeCheckingList |
---|
TypeCheckingList.TypeCheckingListIterator |
Constructor Summary | |
---|---|
PointerTargetTreeNodeList()
|
|
PointerTargetTreeNodeList(java.util.LinkedList list)
|
Method Summary | |
---|---|
void |
add(PointerTarget target)
|
void |
add(PointerTarget target,
PointerTargetTreeNodeList childTreeList,
PointerTargetTreeNodeList pointerTreeList,
PointerType type)
|
void |
add(PointerTarget target,
PointerTargetTreeNodeList childTreeList,
PointerTargetTreeNodeList pointerTreeList,
PointerType type,
PointerTargetTreeNode parent)
|
void |
add(PointerTarget target,
PointerTargetTreeNodeList childTreeList,
PointerType type)
|
void |
add(PointerTarget target,
PointerTargetTreeNodeList childTreeList,
PointerType type,
PointerTargetTreeNode parent)
|
void |
add(PointerTarget target,
PointerType type)
|
void |
add(PointerTarget target,
PointerType type,
PointerTargetTreeNode parent)
|
java.lang.Object |
clone()
Create a shallow clone of the object |
java.lang.Object |
deepClone()
Create a deep clone of the object |
PointerTargetTreeNode[] |
findAll(PointerTargetTreeNode node)
Find all occurances of node within the list. |
PointerTargetTreeNode |
findFirst(PointerTargetTreeNode node)
Find the first node in the list that is equal to node . |
java.util.List |
getAllMatches(PointerTargetTreeNodeList.Operation opr)
Walk the list and perform the operation opr on each node. |
void |
getAllMatches(PointerTargetTreeNodeList.Operation opr,
java.util.List matches)
Get all matches and add them to matches |
java.lang.Object |
getFirstMatch(PointerTargetTreeNodeList.Operation opr)
Walk the list and all the children of each node in the list and perform the operation opr on each node. |
Methods inherited from class net.didion.jwnl.data.list.PointerTargetNodeList |
---|
print, print, print, print, reverse, toTreeList |
Methods inherited from class net.didion.jwnl.util.TypeCheckingList |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, getType, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
hashCode |
Constructor Detail |
---|
public PointerTargetTreeNodeList()
public PointerTargetTreeNodeList(java.util.LinkedList list)
Method Detail |
---|
public void add(PointerTarget target)
add
in class PointerTargetNodeList
public void add(PointerTarget target, PointerType type)
add
in class PointerTargetNodeList
public void add(PointerTarget target, PointerType type, PointerTargetTreeNode parent)
public void add(PointerTarget target, PointerTargetTreeNodeList childTreeList, PointerType type)
public void add(PointerTarget target, PointerTargetTreeNodeList childTreeList, PointerType type, PointerTargetTreeNode parent)
public void add(PointerTarget target, PointerTargetTreeNodeList childTreeList, PointerTargetTreeNodeList pointerTreeList, PointerType type)
public void add(PointerTarget target, PointerTargetTreeNodeList childTreeList, PointerTargetTreeNodeList pointerTreeList, PointerType type, PointerTargetTreeNode parent)
public 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 list.
public java.util.List getAllMatches(PointerTargetTreeNodeList.Operation opr)
opr
on each node.
Searches the list exhaustively and return a List containing all nodes
that are returned by opr
.
public void getAllMatches(PointerTargetTreeNodeList.Operation opr, java.util.List matches)
public PointerTargetTreeNode findFirst(PointerTargetTreeNode node)
node
.
node
is considered to match a node in the list
if they contain equal pointer targets and are of the same type.
public PointerTargetTreeNode[] findAll(PointerTargetTreeNode node)
node
within the list.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
DeepCloneable
clone
in interface DeepCloneable
clone
in class PointerTargetNodeList
java.lang.CloneNotSupportedException
public java.lang.Object deepClone() throws java.lang.UnsupportedOperationException
DeepCloneable
deepClone
in interface DeepCloneable
deepClone
in class PointerTargetNodeList
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |