Package jason.asSyntax
Class UnnamedVar
- All Implemented Interfaces:
ListTerm,LogicalFormula,NumberTerm,Term,ToDOM,ToJson,Serializable,Cloneable,Comparable<Term>,Iterable<Term>,Collection<Term>,List<Term>,SequencedCollection<Term>
Represents an unnamed variable '_'.
- See Also:
-
Field Summary
FieldsFields inherited from class jason.asSyntax.Structure
emptyTermArray, emptyTermListFields inherited from class jason.asSyntax.Literal
DefaultNS, LFalse, LNeg, LPos, LTrue, predicateIndicatorCacheFields inherited from class jason.asSyntax.DefaultTerm
hashCodeCache, srcInfoFields inherited from interface jason.asSyntax.ListTerm
EMPTY_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()make a deep copy of the termsclone in another namespaceintstatic UnnamedVarstatic UnnamedVarstatic UnnamedVarbooleanbooleanMethods inherited from class jason.asSyntax.VarTerm
add, add, addAll, addAll, addTerm, addTerms, append, calcHashCode, canBeAddedInBB, capply, clear, cloneLT, cloneLTShallow, concat, contains, containsAll, countVars, difference, get, getArity, getAsDOM, getAsList, getLast, getNext, getPenultimate, getTail, getTerm, getTerm, getTerms, hasVar, indexOf, insert, intersection, isArithExpr, isAtom, isCyclicTerm, isEmpty, isEnd, isGround, isInternalAction, isList, isLiteral, isNumeric, isPlanBody, isPred, isRule, isString, isStructure, isTail, isVar, iterator, lastIndexOf, listIterator, listIterator, listTermIterator, logicalConsequence, parseVar, remove, remove, removeAll, removeLast, retainAll, reverse, set, setNext, setTail, setTerm, setTerm, setTerms, size, solve, subList, subSets, subsumes, toArray, toArray, unionMethods inherited from class jason.asSyntax.LiteralImpl
getErrorMsg, getPredicateIndicator, negated, setNegatedMethods inherited from class jason.asSyntax.Pred
addAnnot, addAnnots, addAnnots, addSource, capplyAnnots, clearAnnots, createSource, delAnnot, delAnnots, delSource, delSources, equalsAsStructure, getAnnot, getAnnots, getAnnots, getSources, hasAnnot, hasAnnot, hasSource, hasSource, hasSubsetAnnot, hasSubsetAnnot, importAnnots, makeVarsAnnon, parsePred, setAnnots, toStringAsTermMethods inherited from class jason.asSyntax.Structure
addTerms, delTerm, getSingletonVars, getTermsSize, hasTerm, isUnary, makeTermsAnnon, makeVarsAnnon, parse, toString, varToReplaceMethods inherited from class jason.asSyntax.Atom
getFunctor, getNSMethods inherited from class jason.asSyntax.Literal
addSourceInfoAsAnnots, copy, delAnnots, forceFullLiteralImpl, getAsJson, getAsListOfTerms, getTermsArray, newFromListOfTerms, newFunctor, noSource, parseLiteral, subjectToBUFMethods inherited from class jason.asSyntax.DefaultTerm
getCyclicVar, getSrcInfo, hashCode, isMap, isSet, resetHashCodeCache, setSrcInfoMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, hashCode, removeFirst, replaceAll, reversed, sort, spliteratorMethods inherited from interface jason.asSyntax.Term
getCyclicVar, getSrcInfo, isMap, isSet, setSrcInfoMethods inherited from interface jason.util.ToJson
getAsJson, getAsJsonStr
-
Field Details
-
myId
public int myId
-
-
Constructor Details
-
UnnamedVar
public UnnamedVar() -
UnnamedVar
-
UnnamedVar
-
UnnamedVar
public UnnamedVar(int id)
-
-
Method Details
-
create
-
create
-
create
-
clone
Description copied from class:Structuremake a deep copy of the terms -
cloneNS
Description copied from interface:Termclone in another namespace -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Term>- Overrides:
compareToin classVarTerm
-
isUnnamedVar
public boolean isUnnamedVar()- Specified by:
isUnnamedVarin interfaceTerm- Overrides:
isUnnamedVarin classVarTerm
-