public class JIPClause extends JIPTerm
JIPTerm
,
Serialized FormModifier and Type | Method and Description |
---|---|
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
|
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
,
JIPCons
public static final JIPClause create(JIPTerm term)
term
- the JIPTerm object to trasform in a clauseJIPParameterTypeException
- if term cannot be trasformed in a clauseJIPTerm
public final JIPFunctor getHead()
JIPFunctor