|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ugos.JIProlog.engine.JIPTerm
JIPTerm wraps generic prolog terms (atoms, functors, lists, etc.)
| Method Summary | |
void |
clear()
Clears all variables in this JIPTerm object. |
java.lang.Object |
clone()
Clones this JIPTerm object. |
JIPVariable[] |
getVariables()
Gets an array of JIPVariable objects containing the variables in this JIPTerm object |
java.util.Hashtable |
getVariablesTable()
Gets an hashtable of JIPVariable objects containing the variables in this JIPTerm object. |
java.lang.String |
toString()
Returns a canonical representation of this JIPTerm object i.e. it ignores operator declarations. |
java.lang.String |
toString(JIPEngine engine)
Returns a string representation of this JIPTerm object using the operator declarations contained in JIPEngine object. |
java.lang.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,
java.util.Hashtable varTable)
Unifies this JIPTerm object with the specified term. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public final boolean unifiable(JIPTerm term)
term - term to unify
public final java.lang.Object clone()
clone in class java.lang.Objectpublic final void clear()
clear in interface com.ugos.JIProlog.engine.Clearable
public final boolean unify(JIPTerm term,
java.util.Hashtable varTable)
term - term to unifyvarTable - the hashtable containing the variable that has been bound.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(JIPEngine engine)
engine - the JIPEngine object containing operator declarations
public java.lang.String toStringq(JIPEngine engine)
engine - the JIPEngine object containing operator declarations
public final JIPVariable[] getVariables()
JIPVariablepublic final java.util.Hashtable getVariablesTable()
JIPVariable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||