public class PointerTargetTreeNodeList extends PointerTargetNodeList
PointerTargetTreeNode
s.Modifier and Type | Class and Description |
---|---|
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.
|
TypeCheckingList.TypeCheckingListIterator
Constructor and Description |
---|
PointerTargetTreeNodeList() |
PointerTargetTreeNodeList(LinkedList list) |
Modifier and Type | Method and Description |
---|---|
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) |
Object |
clone()
Create a shallow clone of the object
|
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 . |
List |
getAllMatches(PointerTargetTreeNodeList.Operation opr)
Walk the list and perform the operation
opr on each node. |
void |
getAllMatches(PointerTargetTreeNodeList.Operation opr,
List matches)
Get all matches and add them to matches
|
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. |
protected NodePrinter |
getNodePrinter() |
print, print, print, print, print, reverse, toTreeList
add, add, addAll, addAll, clear, contains, containsAll, copyBackingList, equals, get, getType, getTypeCheckingListIterator, getTypeCheckingListIterator, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
public PointerTargetTreeNodeList()
public PointerTargetTreeNodeList(LinkedList list)
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)
protected NodePrinter getNodePrinter()
getNodePrinter
in class PointerTargetNodeList
public 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 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, 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 Object clone() throws CloneNotSupportedException
DeepCloneable
clone
in interface DeepCloneable
clone
in class PointerTargetNodeList
CloneNotSupportedException
public Object deepClone() throws UnsupportedOperationException
DeepCloneable
deepClone
in interface DeepCloneable
deepClone
in class PointerTargetNodeList
UnsupportedOperationException
Copyright © 2016. All rights reserved.