public abstract class RippleList extends ListNode<RippleValue> implements RippleValue
RippleValues.RippleValue.Type| Modifier and Type | Field and Description |
|---|---|
protected RippleValue |
first |
protected RippleList |
rest |
| Modifier | Constructor and Description |
|---|---|
protected |
RippleList(RippleValue first,
RippleList rest) |
| Modifier and Type | Method and Description |
|---|---|
abstract RippleList |
concat(RippleList tail) |
boolean |
equals(Object other) |
RippleValue |
get(int i)
Gets the item at the specified index in the list.
|
RippleValue |
getFirst() |
RippleList |
getRest() |
RippleValue.Type |
getType() |
int |
hashCode() |
abstract RippleList |
invert() |
int |
length() |
void |
printTo(RipplePrintStream p) |
void |
printTo(RipplePrintStream p,
boolean includeParentheses) |
abstract RippleList |
push(RippleValue v) |
abstract void |
setRDF(RDFValue id) |
List<RippleValue> |
toJavaList() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMapping, toRDFprotected RippleValue first
protected final RippleList rest
protected RippleList(RippleValue first, RippleList rest)
public RippleValue getFirst()
getFirst in class ListNode<RippleValue>null if this is a nil listpublic RippleList getRest()
getRest in class ListNode<RippleValue>null if this is a nil listpublic abstract void setRDF(RDFValue id)
public int length()
public RippleValue get(int i) throws RippleException
i - an index into the list, where the index 0 corresponds to the first item in the listRippleException - if retrieval from the list failspublic abstract RippleList push(RippleValue v) throws RippleException
RippleExceptionpublic abstract RippleList invert()
public abstract RippleList concat(RippleList tail)
public String toString()
toString in class ListNode<RippleValue>public void printTo(RipplePrintStream p) throws RippleException
printTo in interface RippleValueRippleExceptionpublic void printTo(RipplePrintStream p, boolean includeParentheses) throws RippleException
RippleExceptionpublic List<RippleValue> toJavaList()
public RippleValue.Type getType()
getType in interface RippleValueCopyright © 2007-2012 fortytwo.net. All Rights Reserved.