GNU Prolog for Java

gnu.prolog.term
Class JavaObjectTerm

java.lang.Object
  extended by gnu.prolog.term.Term
      extended by gnu.prolog.term.AtomicTerm
          extended by gnu.prolog.term.JavaObjectTerm
All Implemented Interfaces:
Serializable, Cloneable

public class JavaObjectTerm
extends AtomicTerm

Term which is embedding JavaObject This term should never participate in text IO operations. It is always created as result of function calls. It could be unified only with variable or other JavaObjectTerm that has value identical (==) to value of this object.

See Also:
Serialized Form

Field Summary
 Object value
          value of the term
 
Fields inherited from class gnu.prolog.term.Term
ATOM, COMPOUND, FLOAT, INTEGER, JAVA_OBJECT, UNKNOWN, VARIABLE
 
Constructor Summary
JavaObjectTerm(Object object)
           
 
Method Summary
 int getTermType()
          get type of term
 
Methods inherited from class gnu.prolog.term.AtomicTerm
clone, clone
 
Methods inherited from class gnu.prolog.term.Term
dereference, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public final Object value
value of the term

Constructor Detail

JavaObjectTerm

public JavaObjectTerm(Object object)
Method Detail

getTermType

public int getTermType()
get type of term

Overrides:
getTermType in class Term
Returns:
type of term

GNU Prolog for Java