Package jason.asSyntax
Interface ListTerm
- All Superinterfaces:
Cloneable
,Collection<Term>
,Comparable<Term>
,Iterable<Term>
,List<Term>
,SequencedCollection<Term>
,Serializable
,Term
,ToDOM
,ToJson
- All Known Implementing Classes:
ListTermImpl
,UnnamedVar
,VarTerm
The interface for lists of the AgentSpeak language
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncloneLT()
clone the list termmake a shallow copy of the list (terms are not cloned, only the structure)difference
(ListTerm lt) getLast()
getNext()
getTail()
getTerm()
intersection
(ListTerm lt) boolean
isEnd()
boolean
isTail()
reverse()
void
void
void
subSets
(int k) returns all subsets that take k elements of this listMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface java.util.List
add, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
Methods inherited from interface jason.asSyntax.Term
capply, clone, cloneNS, countVars, equals, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumes
Methods inherited from interface jason.util.ToJson
getAsJson, getAsJsonStr
-
Field Details
-
EMPTY_LIST
-
-
Method Details
-
setTerm
-
getTerm
Term getTerm() -
setNext
-
getNext
ListTerm getNext() -
isEnd
boolean isEnd() -
isTail
boolean isTail() -
getTail
VarTerm getTail() -
setTail
-
getLast
ListTerm getLast() -
getPenultimate
ListTerm getPenultimate() -
removeLast
Term removeLast()- Specified by:
removeLast
in interfaceList<Term>
- Specified by:
removeLast
in interfaceSequencedCollection<Term>
-
append
-
insert
-
concat
-
reverse
ListTerm reverse() -
union
-
intersection
-
difference
-
subSets
returns all subsets that take k elements of this list -
listTermIterator
-
getAsList
-
cloneLT
ListTerm cloneLT()clone the list term -
cloneLTShallow
ListTerm cloneLTShallow()make a shallow copy of the list (terms are not cloned, only the structure)
-