orc.runtime.values
Class ConsValue
java.lang.Object
   orc.runtime.values.Value
orc.runtime.values.Value
       orc.runtime.values.ListValue
orc.runtime.values.ListValue
           orc.runtime.values.ConsValue
orc.runtime.values.ConsValue
- All Implemented Interfaces: 
- java.lang.Iterable, ListLike
- public class ConsValue 
- extends ListValue
 
 
 
| Method Summary | 
| 
 | accept(Visitor<E> visitor)
 | 
|  java.util.List<java.lang.Object> | enlist()
 | 
|  java.lang.String | toString()
 | 
|  void | uncons(Token caller)Return the head and tail of a cons-like data structure to a token, or
 die.
 | 
|  void | unnil(Token caller)Signal a token if this value is equivalent to nil, or die.
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
h
public java.lang.Object h
t
public ListValue t
ConsValue
public ConsValue(java.lang.Object h,
                 ListValue t)
uncons
public void uncons(Token caller)
- Description copied from interface: ListLike
- Return the head and tail of a cons-like data structure to a token, or
 die. The only place this should be called is TryCons
 
- 
- Specified by:
- unconsin interface- ListLike
- Specified by:
- unconsin class- ListValue
 
- 
 
unnil
public void unnil(Token caller)
- Description copied from interface: ListLike
- Signal a token if this value is equivalent to nil, or die. The only place
 this should be called is TryNil
 
- 
- Specified by:
- unnilin interface- ListLike
- Specified by:
- unnilin class- ListValue
 
- 
 
toString
public java.lang.String toString()
- 
- Overrides:
- toStringin class- java.lang.Object
 
- 
 
enlist
public java.util.List<java.lang.Object> enlist()
- 
- Specified by:
- enlistin class- ListValue
 
- 
 
accept
public <E> E accept(Visitor<E> visitor)
- 
- Overrides:
- acceptin class- ListValue
 
-