public interface ATermList extends ATerm
| Modifier and Type | Method and Description |
|---|---|
ATermList |
append(ATerm el)
Appends an element to this list.
|
ATermList |
concat(ATermList rhs)
Concatenates a list to this list.
|
ATerm |
dictGet(ATerm key)
Retrieves an element from a dictionary list.
|
ATermList |
dictPut(ATerm key,
ATerm value)
Sets the value for an element in a dictionary list.
|
ATermList |
dictRemove(ATerm key)
Removes an element from a dictionary list.
|
ATerm |
elementAt(int i)
Gets the element at a specific index of this list.
|
ATermList |
getEmpty()
Gets the empty list associated to this list.
|
ATerm |
getFirst()
Gets the first element of this list.
|
ATerm |
getLast()
Gets the last element of this list.
|
int |
getLength()
Gets the length (number of elements) of this list.
|
ATermList |
getNext()
Gets the tail (all but the first element) of this list.
|
ATermList |
getPrefix()
Gets the prefix (all but the last element) of this list.
|
ATermList |
getSlice(int start,
int end)
Gets a portion (slice) of this list.
|
int |
indexOf(ATerm el,
int start)
Gets the index of the first occurance of a term in this list.
|
ATermList |
insert(ATerm el)
Inserts a term in front of this list.
|
ATermList |
insertAt(ATerm el,
int i)
Inserts an element at a specific position in this list.
|
boolean |
isEmpty()
Checks if this list is the empty list.
|
int |
lastIndexOf(ATerm el,
int start)
Gets the last occurance of a term in this list.
|
ATermList |
remove(ATerm el)
Removes one occurance of an element from this list.
|
ATermList |
removeAll(ATerm el)
Removes all occurances of an element in this list.
|
ATermList |
removeElementAt(int i)
Removes the element at a specific index in this list.
|
ATermList |
replace(ATerm el,
int i)
Replaces a specific term in this list with another.
|
ATermList |
reverse()
Reverses the elements of this list.
|
equals, getAnnotation, getAnnotations, getFactory, getType, hasAnnotations, hashCode, isEqual, make, match, match, removeAnnotation, removeAnnotations, setAnnotation, setAnnotations, toString, writeToSharedTextFile, writeToTextFilegetUniqueIdentifierboolean isEmpty()
int getLength()
ATerm getFirst()
ATerm getLast()
ATermList getEmpty()
ATermList getNext()
int indexOf(ATerm el, int start)
el - the element to look for.start - the starting position of the lookup. Negative start
implies searching backwards from the tail of the list.IllegalArgumentException - when start > length of list ||
start < -lengthlastIndexOf(aterm.ATerm, int)int lastIndexOf(ATerm el, int start)
el - the element to look for.start - the starting position of the lookup.indexOf(aterm.ATerm, int)ATermList concat(ATermList rhs)
rhs - the list to concatenate to this list.ATermList append(ATerm el)
el - the element to append to this list.ATerm elementAt(int i)
i - the index of the required element.IndexOutOfBoundsException - if i does not refer
to a position in this list.ATermList remove(ATerm el)
el - the element to be removed.ATermList removeElementAt(int i)
i - the index of the element to be removed.IndexOutOfBoundsException - if i does not refer
to a position in this list.ATermList removeAll(ATerm el)
el - the element to be removed.ATermList insert(ATerm el)
el - the element to be inserted.ATermList insertAt(ATerm el, int i)
el - the element to be inserted.i - the index at which to insert.ATermList getPrefix()
ATermList getSlice(int start, int end)
start - the start of the slice (included).end - the end of the slice (excluded).ATermList replace(ATerm el, int i)
el - the element to be put into this list.i - the index of the element in this list to be replaced.IndexOutOfBoundsException - if i does not refer
to a position in this list.ATermList reverse()
ATerm dictGet(ATerm key)
key - the key to look forATermList dictPut(ATerm key, ATerm value)
key - the key to setvalue - the value to associate with keyCopyright © 2012 CWI. All Rights Reserved.