net.didion.jwnl.data.list
Class PointerTargetNodeList
java.lang.Object
net.didion.jwnl.util.TypeCheckingList
net.didion.jwnl.data.list.PointerTargetNodeList
- All Implemented Interfaces:
- Cloneable, Iterable, Collection, List, DeepCloneable
- Direct Known Subclasses:
- PointerTargetTreeNodeList
public class PointerTargetNodeList
- extends TypeCheckingList
A PointerTargetNodeList holds the results of a relationship method.
Each node contains a PointerTarget (a synset or word) and the type of
relationship that the node has to the other elements in the list and/or to
the source word.
| Methods inherited from class net.didion.jwnl.util.TypeCheckingList |
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 |
PointerTargetNodeList
public PointerTargetNodeList()
PointerTargetNodeList
public PointerTargetNodeList(LinkedList list)
PointerTargetNodeList
public PointerTargetNodeList(PointerTarget[] targets)
PointerTargetNodeList
protected PointerTargetNodeList(LinkedList list,
Class type)
add
public void add(PointerTarget target)
add
public void add(PointerTarget target,
PointerType type)
getNodePrinter
protected NodePrinter getNodePrinter()
print
public void print()
print
public void print(int indent)
print
public void print(PrintStream stream)
print
public void print(PrintStream stream,
int indent)
print
protected void print(PrintStream stream,
int indent,
int indentIncrement)
toTreeList
public PointerTargetTreeNodeList toTreeList()
- Convert this list to a PointerTargetTreeNodeList.
reverse
public PointerTargetNodeList reverse()
- Reverse the contents of this list. This function creates a copy of
this list and reverses it, so there are no changes made to this list
itself.
clone
public Object clone()
throws CloneNotSupportedException
- Description copied from interface:
DeepCloneable
- Create a shallow clone of the object
- Specified by:
clone in interface DeepCloneable- Overrides:
clone in class TypeCheckingList
- Throws:
CloneNotSupportedException
deepClone
public Object deepClone()
throws UnsupportedOperationException
- Description copied from interface:
DeepCloneable
- Create a deep clone of the object
- Specified by:
deepClone in interface DeepCloneable- Overrides:
deepClone in class TypeCheckingList
- Throws:
UnsupportedOperationException
Copyright © 2011. All Rights Reserved.