public class TokenArrayList extends ArrayList<Token>
Token,
Serialized FormmodCount| Constructor and Description |
|---|
TokenArrayList()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Token element)
Inserts the specified Token at the specified position in this list.
|
boolean |
add(Token element)
Appends the specified Token to the end of this list.
|
Token |
nth(int i)
Returns the nth Token in the array - this is a convenience function that
casts the result of the get() call to ArrayList superclass.
|
String |
toString()
Formats the token list as a String.
|
addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic void add(int index,
Token element)
public boolean add(Token element)
public Token nth(int i)
public String toString()
toString in class AbstractCollection<Token>Copyright © 2023. All rights reserved.