public class JIPTerm extends Object implements Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all variables in this JIPTerm object.
|
Object |
clone()
Clones this JIPTerm object.
|
boolean |
equals(Object obj) |
JIPTerm |
getValue() |
JIPVariable[] |
getVariables()
Gets an array of JIPVariable objects containing the variables in this JIPTerm object
|
Hashtable |
getVariablesTable()
Gets an hashtable of JIPVariable objects containing the variables in this JIPTerm object.
|
String |
toString()
Returns a canonical representation of this JIPTerm object i.e. it ignores
operator declarations.
|
String |
toString(JIPEngine engine)
Returns a string representation of this JIPTerm object using
the operator declarations contained in JIPEngine object.
|
String |
toStringq(JIPEngine engine)
Returns a quoted string representation of this JIPTerm object using
the operator declarations contained in JIPEngine object.
|
boolean |
unifiable(JIPTerm term)
Checks if this JIPTerm object unifies with the specified term.
|
boolean |
unify(JIPTerm term,
Hashtable varTable)
Unifies this JIPTerm object with the specified term.
|
public final boolean unifiable(JIPTerm term)
term
- term to unifypublic final Object clone()
public final void clear()
public final boolean unify(JIPTerm term, Hashtable varTable)
term
- term to unifyvarTable
- the hashtable containing the variable that has been bound.public JIPTerm getValue()
public String toString()
public String toString(JIPEngine engine)
engine
- the JIPEngine object containing operator declarationspublic String toStringq(JIPEngine engine)
engine
- the JIPEngine object containing operator declarationspublic final JIPVariable[] getVariables()
JIPVariable
public final Hashtable getVariablesTable()
JIPVariable