com.ifcomputer.minerva
Class MinervaObject

java.lang.Object
  |
  +--com.ifcomputer.minerva.MinervaTerm
        |
        +--com.ifcomputer.minerva.MinervaObject
All Implemented Interfaces:
java.io.Serializable

public class MinervaObject
extends MinervaTerm
implements java.io.Serializable

The class MinervaObject is used to represent an object as Minerva term. This class should be used to create Minerva terms for objects, which cannot represented by basic Minerva terms.

See Also:
MinervaCompound, MinervaList, MinervaVariable, MinervaAtom, MinervaLong, MinervaDouble, Serialized Form

Field Summary
 
Fields inherited from class com.ifcomputer.minerva.MinervaTerm
ATOM, COMPOUND, DOUBLE, LIST, LONG, OBJECT, VARIABLE
 
Constructor Summary
MinervaObject(java.lang.Object object)
          Constructs a Minerva term, representing the object 'object'.
 
Method Summary
 boolean equals(java.lang.Object other)
          This function returns true, if other is an instance of MinervaObject and the objects repesented by 'other' and 'this' are equal.
 java.lang.Object objectValue()
          Returns the object, represented by this term
 java.lang.String toString()
          This function stringifies the term into a format readable by the Minerva read predicates.
 int typeOf()
          This function returns the type (VARIABLE, ATOM, etc.) of this term.
 
Methods inherited from class com.ifcomputer.minerva.MinervaTerm
getEnumeration, getListLength, getStringArray, getTermArray, isList, reset, resolve, setValue
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MinervaObject

public MinervaObject(java.lang.Object object)
Constructs a Minerva term, representing the object 'object'.

Method Detail

objectValue

public java.lang.Object objectValue()
Returns the object, represented by this term


toString

public java.lang.String toString()
This function stringifies the term into a format readable by the Minerva read predicates.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
This function returns true, if other is an instance of MinervaObject and the objects repesented by 'other' and 'this' are equal.

Overrides:
equals in class java.lang.Object

typeOf

public int typeOf()
Description copied from class: MinervaTerm
This function returns the type (VARIABLE, ATOM, etc.) of this term.

Specified by:
typeOf in class MinervaTerm
See Also:
MinervaTerm.VARIABLE, MinervaTerm.ATOM, MinervaTerm.LONG, MinervaTerm.DOUBLE, MinervaTerm.OBJECT, MinervaTerm.COMPOUND, MinervaTerm.LIST