public class ListOfTerm extends ListOfNodes
Node.Operations
Modifier and Type | Field and Description |
---|---|
static Integer |
ID |
_nodesList
_nodes, _observers, _operations, _thisoperations
Constructor and Description |
---|
ListOfTerm() |
ListOfTerm(Term[] nodes) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
This method is part of the implementation of the visitor design pattern.
|
void |
append(Term e) |
Term |
element(int i) |
Term |
first() |
int |
getClassID()
This method return the dynamic class ID of the node.
|
Node |
getClone(HashMap clones)
This method return a clone of the list.
|
Node.Operations |
getOperations()
This method returns the object implementing the operations associated to this node.
|
Term |
last() |
void |
prepend(Term e) |
add, add, addAll, addAll, addAll, asACollection, asAList, children, childrenAccept, childrenOfKind, contains, copyValueOf, dofind, dump, find, get, getFirst, getLast, isEmpty, iterator, remove, remove, removeAll, replace, replaceAll, replaceAll, size, sort, toString
addObserver, addOperations, childrenOfKind, childrenOfKind, compare, compareTo, copyValueOf, equals, find, find, find, find, getAttribute, getAttribute, getClone, hasAttribute, hasAttribute, initNode, installOperations, notifyChanges, removeObserver, setAttribute, setAttribute
public static Integer ID
public ListOfTerm(Term[] nodes)
public ListOfTerm()
public int getClassID()
ListOfNodes
getClassID
in class ListOfNodes
public Term element(int i)
public void append(Term e)
public void prepend(Term e)
public Term last()
public Term first()
public void accept(Visitor visitor)
ListOfNodes
accept
in class ListOfNodes
visitor
- the visitor to apply on the list.public Node getClone(HashMap clones)
ListOfNodes
getClone
in class ListOfNodes
public Node.Operations getOperations()
Node
getOperations
in class Node