|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.runtime.values.Value
public abstract class Value
A fully evaluated Orc value. This includes sites, tuples of fully evaluated values, and native Java values. However, it does not include unbound or partially-bound values, which are instead in the broader category of Futures.
Constructor Summary | |
---|---|
Value()
|
Method Summary | ||
---|---|---|
abstract
|
accept(Visitor<E> visitor)
|
|
Value |
forceArg(Token t)
|
|
Callable |
forceCall(Token t)
|
|
Value |
head()
Return the head value of a cons-like data structure. |
|
boolean |
isCons()
|
|
boolean |
isNil()
|
|
boolean |
isNone()
|
|
boolean |
isSome()
Test whether this value inhabits one of the option or list types. |
|
static Value |
signal()
Static function to access the canonical 'signal' value Currently, the signal value is an empty tuple |
|
Value |
tail()
Return the tail value of a cons-like data structure. |
|
Value |
untag()
Return the contained value v of an option some(v). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Value()
Method Detail |
---|
public Value forceArg(Token t)
forceArg
in interface Future
public Callable forceCall(Token t)
forceCall
in interface Future
public static Value signal()
public boolean isSome()
public boolean isNone()
public boolean isCons()
public boolean isNil()
public Value untag()
public Value head()
public Value tail()
public abstract <E> E accept(Visitor<E> visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |