public class CallContext
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | ARG_IN_IVALUE1 | 
| static int | ARG_IN_IVALUE2 | 
| static int | ARG_IN_VALUE1 | 
| static int | ARG_IN_VALUE2 | 
| static int | ARG_IN_VALUE3 | 
| static int | ARG_IN_VALUE4 | 
| static int | ARG_IN_VALUES_ARRAY | 
| Consumer | consumerFunction results are written to this Consumer. | 
| int | countNumber of actual arguments. | 
| java.lang.Object[][] | evalFramesCurrent stack of evaluation frames for interpreter. | 
| int | ivalue1 | 
| int | ivalue2 | 
| int | nextIndex of next argument. | 
| int | pcThe program location in the current procedure. | 
| Procedure | proc | 
| java.lang.Object | value1Used for passing parameters. | 
| java.lang.Object | value2 | 
| java.lang.Object | value3 | 
| java.lang.Object | value4 | 
| java.lang.Object[] | values | 
| int | whereEncoding of where the arguments are. | 
| Constructor and Description | 
|---|
| CallContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanupFromContext(int saved)Cleanup-only part of getFromContext. | 
| int | getArgCount() | 
| java.lang.Object[] | getArgs() | 
| java.lang.Object | getFromContext(int saved)Routine to extract result and restore state after startFromContext. | 
| static CallContext | getInstance()Get or create a CallContext for the current thread. | 
| java.lang.Object | getNextArg()Get the next incoming argument. | 
| java.lang.Object | getNextArg(java.lang.Object defaultValue)Get the next incoming argument. | 
| int | getNextIntArg() | 
| int | getNextIntArg(int defaultValue) | 
| static CallContext | getOnlyInstance()Get but don't create a CallContext for the current thread. | 
| java.lang.Object[] | getRestArgsArray(int next)Get remaining arguments as an array. | 
| LList | getRestArgsList(int next)Get remaining arguments as a list. | 
| void | lastArg()Note that we are done with the input arguments. | 
| void | runUntilDone() | 
| java.lang.Object | runUntilValue()Run until no more continuations, returning final result. | 
| void | runUntilValue(Consumer out)Run until no more continuations, sending result to a COnsumer. | 
| static void | setInstance(CallContext ctx) | 
| int | startFromContext()Setup routine before calling a method that takes a CallContext. | 
| void | writeValue(java.lang.Object value)Write values (of function result) to current consumer. | 
public Procedure proc
public int pc
public Consumer consumer
public java.lang.Object value1
public java.lang.Object value2
public java.lang.Object value3
public java.lang.Object value4
public java.lang.Object[] values
public int ivalue1
public int ivalue2
public int count
public int next
public int where
public static final int ARG_IN_VALUES_ARRAY
public static final int ARG_IN_VALUE1
public static final int ARG_IN_VALUE2
public static final int ARG_IN_VALUE3
public static final int ARG_IN_VALUE4
public static final int ARG_IN_IVALUE1
public static final int ARG_IN_IVALUE2
public java.lang.Object[][] evalFrames
public static void setInstance(CallContext ctx)
public static CallContext getOnlyInstance()
public static CallContext getInstance()
public int getArgCount()
public java.lang.Object getNextArg()
public int getNextIntArg()
public java.lang.Object getNextArg(java.lang.Object defaultValue)
public int getNextIntArg(int defaultValue)
public final java.lang.Object[] getRestArgsArray(int next)
public final LList getRestArgsList(int next)
public void lastArg()
public java.lang.Object[] getArgs()
public void runUntilDone()
                  throws java.lang.Throwable
java.lang.Throwablepublic final int startFromContext()
public final java.lang.Object getFromContext(int saved)
                                      throws java.lang.Throwable
java.lang.Throwablepublic final void cleanupFromContext(int saved)
public final java.lang.Object runUntilValue()
                                     throws java.lang.Throwable
java.lang.Throwablepublic final void runUntilValue(Consumer out) throws java.lang.Throwable
java.lang.Throwablepublic void writeValue(java.lang.Object value)