ConForM.CoopnTools.CoKer
Class LexicalTokenList
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.ArrayList
|
+--ConForM.CoopnTools.CoKer.LexicalTokenList
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable
- public class LexicalTokenList
- extends java.util.ArrayList
A lexical token list.
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary |
LexicalTokenList()
Constructs an empty list |
LexicalTokenList(java.util.Collection c)
Constructs a list containing the elements of
the specified Collection, which must all
be of type LexicalToken, in the order they
are returned by the collection's iterator |
LexicalTokenList(int initialCapacity)
Constructs an empty list with the specified
initial capacity |
Method Summary |
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified
position in this list |
boolean |
add(java.lang.Object o)
Appends the specified element to the end of this list |
boolean |
addAll(java.util.Collection c)
Appends all of the elements in the specified
Collection to the end of this list, in the
order that they are returned by the specified
Collection's Iterator. |
int |
indexOf(java.lang.Object elem)
Searches for the first occurence of the given
argument,testing for equality using the equals method. |
int |
lastIndexOf(java.lang.Object elem)
Returns the index of the last occurrence of the
specified object in this list |
java.lang.Object |
remove(int index)
Throws exception since remove is not allowed on this list |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position
in this list with the specified element |
Methods inherited from class java.util.ArrayList |
addAll, clear, clone, contains, ensureCapacity, get, isEmpty, removeRange, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
LexicalTokenList
public LexicalTokenList()
- Constructs an empty list
LexicalTokenList
public LexicalTokenList(java.util.Collection c)
- Constructs a list containing the elements of
the specified Collection, which must all
be of type LexicalToken, in the order they
are returned by the collection's iterator
- Parameters:
c
- The collection of LexicalTokens
LexicalTokenList
public LexicalTokenList(int initialCapacity)
- Constructs an empty list with the specified
initial capacity
- Parameters:
initialCapacity
- The initial capacitiy
add
public void add(int index,
java.lang.Object element)
- Inserts the specified element at the specified
position in this list
- Overrides:
add
in class java.util.ArrayList
add
public boolean add(java.lang.Object o)
- Appends the specified element to the end of this list
- Overrides:
add
in class java.util.ArrayList
addAll
public boolean addAll(java.util.Collection c)
- Appends all of the elements in the specified
Collection to the end of this list, in the
order that they are returned by the specified
Collection's Iterator.
- Overrides:
addAll
in class java.util.ArrayList
indexOf
public int indexOf(java.lang.Object elem)
- Searches for the first occurence of the given
argument,testing for equality using the equals method.
- Overrides:
indexOf
in class java.util.ArrayList
lastIndexOf
public int lastIndexOf(java.lang.Object elem)
- Returns the index of the last occurrence of the
specified object in this list
- Overrides:
lastIndexOf
in class java.util.ArrayList
set
public java.lang.Object set(int index,
java.lang.Object element)
- Replaces the element at the specified position
in this list with the specified element
- Overrides:
set
in class java.util.ArrayList
remove
public java.lang.Object remove(int index)
- Throws exception since remove is not allowed on this list
- Overrides:
remove
in class java.util.ArrayList