Class NodeList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--NodeList
- All Implemented Interfaces:
- Cloneable, Collection, List, Serializable
- public class NodeList
- extends ArrayList
This class represents a list of node.
It could be arguments in a function call or Test Set.
- Author:
- P. URSO
- See Also:
Node
, Serialized Form
Method Summary |
boolean |
allLowerThan(Node node)
Test if all elements of this list are lower than a specified node. |
boolean |
contains(Node node)
Tests if this list contains a specified node. |
boolean |
equals(NodeList l)
Tests if some other node list is "equal to" this one. |
Node |
getNode(int i)
Returns the node at the specified position in this list. |
boolean |
lexiGreaterThan(NodeList l)
Tests if this list is greater in lexicographic order than some other. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
NodeList
public NodeList()
getNode
public Node getNode(int i)
- Returns the node at the specified position in this list.
- Parameters:
index
- index of node to return.- Returns:
- the node at the specified position in this list.
contains
public boolean contains(Node node)
- Tests if this list contains a specified node.
- Parameters:
node
- a node.- Returns:
- true if the node is a part of one in the list.
lexiGreaterThan
public boolean lexiGreaterThan(NodeList l)
- Tests if this list is greater in lexicographic order than some other.
It is supposed that the two list have the same size.
- Parameters:
l
- the node list with which to compare.- Returns:
- true if the two list are "equals" until one node is greater
than an other.
allLowerThan
public boolean allLowerThan(Node node)
- Test if all elements of this list are lower than a specified node.
- Parameters:
fnode
- the function call node
equals
public boolean equals(NodeList l)
- Tests if some other node list is "equal to" this one.
It is supposed that the two list have the same size.
- Parameters:
l
- the node list with which to compare.- Returns:
- true if all nodes are equal one by one.