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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intclone()intbooleanget as XMLjavax.json.JsonValuegets the Java string represented by this term, it normally does not return the same string as toString (which enclose the string by quotes)booleanisString()intlength()static StringTermparseString(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, subsumesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, subsumesMethods inherited from interface jason.util.ToJson
getAsJsonStr
-
Constructor Details
-
StringTermImpl
public StringTermImpl() -
StringTermImpl
-
StringTermImpl
-
-
Method Details
-
getString
Description copied from interface:StringTermgets 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:
getStringin interfaceStringTerm
-
clone
- Specified by:
clonein interfaceTerm- Specified by:
clonein classDefaultTerm
-
parseString
-
isString
public boolean isString()- Specified by:
isStringin interfaceTerm- Overrides:
isStringin classDefaultTerm
-
length
public int length()- Specified by:
lengthin interfaceStringTerm
-
equals
-
calcHashCode
protected int calcHashCode()- Specified by:
calcHashCodein classDefaultTerm
-
compareTo
- Specified by:
compareToin interfaceComparable<Term>- Overrides:
compareToin classDefaultTerm
-
toString
-
getAsDOM
get as XML -
getAsJson
public javax.json.JsonValue getAsJson()
-