anvil.script
Class Thunk

java.lang.Object
  |
  +--anvil.core.Any
        |
        +--anvil.core.AnyRef
              |
              +--anvil.script.Thunk
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable

public class Thunk
extends AnyRef


Field Summary
protected  StackFrame _escape
           
protected  Function _function
           
protected  Any _result
           
protected  Any _self
           
 
Fields inherited from class anvil.core.Any
_class, ARRAY0, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, EMPTY_STRING, EMPTY_TUPLE, FALSE, INF, IS_ARRAY, IS_BINARY, IS_BOOLEAN, IS_BUFFER, IS_CLASS, IS_DOUBLE, IS_ENUMERATION, IS_INF, IS_INT, IS_LIST, IS_MAP, IS_NEG_INF, IS_NULL, IS_PATTERN, IS_RANGE, IS_STRING, IS_TUPLE, IS_UNDEFINED, MINUS_ONE, NAN, NEG_INF, NULL, ONE, p_compareTo, p_each, p_equals, p_pipe, p_select, THREE, TRUE, TWO, UNDEFINED, ZERO
 
Constructor Summary
Thunk(StackFrame escape, Function function)
           
Thunk(StackFrame escape, Function function, Any self)
           
 
Method Summary
 Any getRef()
           
 void serialize(Serializer serializer)
           
 Any setRef(Any value)
           
 
Methods inherited from class anvil.core.AnyRef
add, classOf, clone, coerce, compare, contains, copy, decrease, deleteAttribute, deleteReference, divide, equals, execute, execute, execute, execute, execute, execute, getAttribute, getReference, has, hashCode, increase, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, isArray, isBinary, isBoolean, isBuffer, isDefined, isDouble, isInt, isIterator, isList, isMap, isMutable, isNull, isPattern, isRange, isRef, isSequence, isString, isTuple, isUndefined, iterator, minus, modulo, multiply, plus, setAttribute, setReference, setReference, sizeOf, subtract, toAnvil, toAnvil, toAnyBoolean, toAnyDouble, toAnyInt, toAnyString, toArray, toBinary, toBoolean, toBuffer, toByte, toCode, toDouble, toInt, toList, toLong, toMap, toObject, toPattern, toRange, toString, toTuple, type, typeOf
 
Methods inherited from class anvil.core.Any
_clone, _copy, _invoke, _invoke, _invoke, _invoke, _invoke, _invoke, _serialize, _unserialize, _wakeup, classNameOf, compareTo, concat, create, create, create, create, create, create, create, create, create, create, create, create, create, create, isInstanceOf, m_clone, m_compareTo, m_copy, m_each, m_equals, m_hashCode, m_pipe, m_select, m_toBoolean, m_toString, not, toChar
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_escape

protected StackFrame _escape

_function

protected Function _function

_self

protected Any _self

_result

protected Any _result
Constructor Detail

Thunk

public Thunk(StackFrame escape,
             Function function)

Thunk

public Thunk(StackFrame escape,
             Function function,
             Any self)
Method Detail

setRef

public Any setRef(Any value)
Specified by:
setRef in class AnyRef

getRef

public Any getRef()
Specified by:
getRef in class AnyRef

serialize

public void serialize(Serializer serializer)
               throws java.io.IOException
Overrides:
serialize in class AnyRef
java.io.IOException