|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.ugos.JIProlog.engine.JIPTerm
|
+--com.ugos.JIProlog.engine.JIPClause
JIPClause wraps a prolog clause
JIPTerm,
Serialized Form| Method Summary | |
static JIPClause |
create(JIPFunctor head,
JIPCons body)
Creates a new JIPClause object |
static JIPClause |
create(JIPTerm term)
Creates a new JIPClause object starting from e JIPTerm object |
JIPCons |
getBody()
Returns the body of this JIPClause object |
JIPFunctor |
getHead()
Returns the predicate in the head of this JIPClause object |
| Methods inherited from class com.ugos.JIProlog.engine.JIPTerm |
clear, clone, getVariables, getVariablesTable, toString, toString, toStringq, unifiable, unify |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static final JIPClause create(JIPFunctor head,
JIPCons body)
head - the head of the clausebody - the body of the clause. body can be null if the clause has no body.
JIPFunctor,
JIPConspublic static final JIPClause create(JIPTerm term)
term - the JIPTerm object to trasform in a clause
JIPParameterTypeException - if term cannot be trasformed in a clauseJIPTermpublic final JIPFunctor getHead()
JIPFunctorpublic final JIPCons getBody()
JIPCons
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||