Package jason.asSyntax
Class StringTermImpl
java.lang.Object
jason.asSyntax.DefaultTerm
jason.asSyntax.StringTermImpl
- All Implemented Interfaces:
StringTerm
,Term
,ToDOM
,ToJson
,Serializable
,Cloneable
,Comparable<Term>
Immutable class for string terms.
- See Also:
-
Field Summary
Fields inherited from class jason.asSyntax.DefaultTerm
hashCodeCache, srcInfo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
clone()
int
boolean
get as XMLjavax.json.JsonValue
gets the Java string represented by this term, it normally does not return the same string as toString (which enclose the string by quotes)boolean
isString()
int
length()
static StringTerm
parseString
(String sTerm) toString()
Methods inherited from class jason.asSyntax.DefaultTerm
capply, cloneNS, countVars, getCyclicVar, getErrorMsg, getSrcInfo, hashCode, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, 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
capply, cloneNS, countVars, getCyclicVar, getSrcInfo, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, isNumeric, isPlanBody, isPred, isRule, isSet, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumes
Methods inherited from interface jason.util.ToJson
getAsJsonStr
-
Constructor Details
-
StringTermImpl
public StringTermImpl() -
StringTermImpl
-
StringTermImpl
-
-
Method Details
-
getString
Description copied from interface:StringTerm
gets the Java string represented by this term, it normally does not return the same string as toString (which enclose the string by quotes)- Specified by:
getString
in interfaceStringTerm
-
clone
- Specified by:
clone
in interfaceTerm
- Specified by:
clone
in classDefaultTerm
-
parseString
-
isString
public boolean isString()- Specified by:
isString
in interfaceTerm
- Overrides:
isString
in classDefaultTerm
-
length
public int length()- Specified by:
length
in interfaceStringTerm
-
equals
-
calcHashCode
protected int calcHashCode()- Specified by:
calcHashCode
in classDefaultTerm
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Term>
- Overrides:
compareTo
in classDefaultTerm
-
toString
-
getAsDOM
get as XML -
getAsJson
public javax.json.JsonValue getAsJson()
-