|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is the interface for all the JProlog data structure. There is some object-inherited method that must be overwritten, because they will be use a lot's, such as equals(), hashcode() or clone().
| Field Summary | |
static int |
ATOM
The atom type. |
static int |
ATOMIC_TERM
The atomic term type. |
static int |
COMPOUND_TERM
The compound term type. |
static int |
NULL
The null type. |
static int |
NUMBER
The number type. |
static int |
OPERATOR
The operator type. |
static int |
PREDICATE
The predicate type. |
static int |
TERM
The term type. |
static java.lang.String[] |
TYPE
A String array that contains the type name. |
static int |
UNKNOWN
The unknow type. |
static int |
VARIABLE
The variable type. |
| Method Summary | |
java.lang.Object |
clone()
Return a copy of this object. |
boolean |
equals(java.lang.Object _obj)
Say if two terms are equals. |
void |
finalize()
Finalize and delete the term. |
int |
getType()
Return the term's type. |
java.lang.String |
getValue()
Return the term's value |
int |
hashcode()
Return a term's hashcode. |
long |
randomHashcode()
Return a randomized hashcode. |
void |
setType(int _type)
Change the term's type. |
void |
setValue(java.lang.String _value)
Change the term's type. |
java.lang.String |
toString()
Return a String representation of the term. |
| Field Detail |
public static final int UNKNOWN
public static final int NULL
public static final int TERM
public static final int ATOMIC_TERM
public static final int COMPOUND_TERM
public static final int ATOM
public static final int NUMBER
public static final int VARIABLE
public static final int OPERATOR
public static final int PREDICATE
public static final java.lang.String[] TYPE
| Method Detail |
public int getType()
int - The term's type.public void setType(int _type)
_type - The new type.public java.lang.String getValue()
String - The term's value.public void setValue(java.lang.String _value)
_value - The new value.public long randomHashcode()
int - A randomized hashcode.public int hashcode()
int - The hashcode.public java.lang.String toString()
toString in class java.lang.ObjectString - The String representation of the term.public boolean equals(java.lang.Object _obj)
equals in class java.lang.Object_obj - The object to compare with.
boolean - True if the specified object is equals to this one,
false oterwise.public java.lang.Object clone()
clone in class java.lang.ObjectObject - A copy of this object.public void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||