orc.runtime.values
Class ConsValue

java.lang.Object
  extended by orc.runtime.values.Value
      extended by orc.runtime.values.ListValue
          extended by orc.runtime.values.ConsValue
All Implemented Interfaces:
java.lang.Iterable, ListLike

public class ConsValue
extends ListValue


Field Summary
 
Fields inherited from class orc.runtime.values.Value
futureNotReady
 
Constructor Summary
ConsValue(java.lang.Object h, ListValue t)
           
 
Method Summary
 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.
 void unnil(Token caller)
           
 
Methods inherited from class orc.runtime.values.ListValue
accept, iterator, make
 
Methods inherited from class orc.runtime.values.Value
forceArg, forceCall, isNone, isSome, signal, untag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsValue

public ConsValue(java.lang.Object h,
                 ListValue t)
Method Detail

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. The only place this should be called is the TryCons builtin site.

Specified by:
uncons in interface ListLike
Specified by:
uncons in class ListValue

unnil

public void unnil(Token caller)
Specified by:
unnil in interface ListLike
Specified by:
unnil in class ListValue

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

enlist

public java.util.List<java.lang.Object> enlist()
Specified by:
enlist in class ListValue