Package jason.asSyntax
Class MapTermImpl
java.lang.Object
jason.asSyntax.DefaultTerm
jason.asSyntax.MapTermImpl
- All Implemented Interfaces:
MapTerm
,Term
,ToDOM
,ToJson
,Serializable
,Cloneable
,Comparable<Term>
Represents a Jason map as a TreeMap in java
- See Also:
-
Field Summary
Fields inherited from class jason.asSyntax.DefaultTerm
hashCodeCache, srcInfo
-
Constructor Summary
-
Method Summary
Methods inherited from class jason.asSyntax.DefaultTerm
cloneNS, countVars, getCyclicVar, getErrorMsg, getSrcInfo, hashCode, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, parse, resetHashCodeCache, setSrcInfo, subsumes
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface jason.asSyntax.Term
cloneNS, countVars, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isNumeric, isPlanBody, isPred, isRule, isSet, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumes
Methods inherited from interface jason.util.ToJson
getAsJsonStr
-
Constructor Details
-
MapTermImpl
public MapTermImpl()
-
-
Method Details
-
clone
- Specified by:
clone
in interfaceTerm
- Specified by:
clone
in classDefaultTerm
-
deepClone
-
capply
Description copied from interface:Term
clone and applies together (and faster than clone and then apply)- Specified by:
capply
in interfaceTerm
- Overrides:
capply
in classDefaultTerm
-
equals
-
calcHashCode
public int calcHashCode()- Specified by:
calcHashCode
in classDefaultTerm
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Term>
- Overrides:
compareTo
in classDefaultTerm
-
size
public int size() -
isMap
public boolean isMap()- Specified by:
isMap
in interfaceTerm
- Overrides:
isMap
in classDefaultTerm
-
get
-
put
-
remove
-
keys
-
values
-
clear
public void clear() -
toString
-
getAsDOM
-
getAsJson
public javax.json.JsonValue getAsJson()
-