|
|||||||||||
| 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.JIPList
JIPList wraps a prolog list
JIPTerm,
Serialized Form| Field Summary | |
static JIPList |
NIL
Empty list or nil [] |
| Method Summary | |
static JIPList |
append(JIPList head,
JIPList tail)
Returns a new JIPList object by appending list2 to list1 |
static JIPList |
create(JIPTerm head,
JIPTerm tail)
Creates a new List |
JIPTerm |
getHead()
Returns the head of this JIPList object |
JIPTerm |
getNth(int n)
Returns the nth term in this list. |
JIPTerm |
getTail()
Returns the tail of this JIPList object |
boolean |
isNIL()
Returns true if this list is []. |
JIPList |
reverse()
Returns a new JIPList object by reversing this JIPList 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 |
| Field Detail |
public static final JIPList NIL
| Method Detail |
public static final JIPList create(JIPTerm head,
JIPTerm tail)
head - the head of the Listtail - the tail the List
JIPTerm
public static final JIPList append(JIPList head,
JIPList tail)
head - the list1 of the first listtail - the list2 the second list
public final JIPList reverse()
public final JIPTerm getHead()
JIPTermpublic final JIPTerm getTail()
public final JIPTerm getNth(int n)
n - index ot the term to extract
JIPTermpublic final boolean isNIL()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||