Package jason.asSyntax
Class ObjectTermImpl
java.lang.Object
jason.asSyntax.DefaultTerm
jason.asSyntax.ObjectTermImpl
- All Implemented Interfaces:
ObjectTerm
,Term
,ToDOM
,ToJson
,java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<Term>
public class ObjectTermImpl extends DefaultTerm implements ObjectTerm
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description private boolean
hasTestedClone
private java.lang.reflect.Method
mclone
private java.lang.Object
o
private static long
serialVersionUID
Fields inherited from class jason.asSyntax.DefaultTerm
hashCodeCache, srcInfo
-
Constructor Summary
Constructors Constructor Description ObjectTermImpl(java.lang.Object o)
Creates a new Term Wrapper for java object -
Method Summary
Modifier and Type Method Description protected int
calcHashCode()
ObjectTerm
clone()
boolean
equals(java.lang.Object o)
org.w3c.dom.Element
getAsDOM(org.w3c.dom.Document document)
javax.json.JsonValue
getAsJson()
java.lang.Object
getObject()
java.lang.String
toString()
Methods inherited from class jason.asSyntax.DefaultTerm
capply, cloneNS, compareTo, countVars, getCyclicVar, getErrorMsg, getSrcInfo, hashCode, hasVar, isArithExpr, isAtom, isCyclicTerm, isGround, isInternalAction, isList, isLiteral, isMap, 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 java.lang.Comparable
compareTo
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, isString, isStructure, isUnnamedVar, isVar, setSrcInfo, subsumes
Methods inherited from interface jason.util.ToJson
getAsJsonStr
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
o
private final java.lang.Object o -
mclone
private java.lang.reflect.Method mclone -
hasTestedClone
private boolean hasTestedClone
-
-
Constructor Details
-
ObjectTermImpl
public ObjectTermImpl(java.lang.Object o)Creates a new Term Wrapper for java object
-
-
Method Details
-
getObject
public java.lang.Object getObject()- Specified by:
getObject
in interfaceObjectTerm
-
calcHashCode
protected int calcHashCode()- Specified by:
calcHashCode
in classDefaultTerm
-
equals
public boolean equals(java.lang.Object o) -
clone
- Specified by:
clone
in interfaceTerm
- Specified by:
clone
in classDefaultTerm
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getAsDOM
public org.w3c.dom.Element getAsDOM(org.w3c.dom.Document document) -
getAsJson
public javax.json.JsonValue getAsJson()
-