gnu.mapping
public class CallContext extends Object
Field Summary | |
---|---|
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 | consumer Function results are written to this Consumer.
|
int | count Number of actual arguments. |
Object[][] | evalFrames Current stack of evaluation frames for interpreter. |
int | ivalue1 |
int | ivalue2 |
int | next Index of next argument.
|
int | pc The program location in the current procedure.
|
Procedure | proc |
Object | value1 Used for passing parameters. |
Object | value2 |
Object | value3 |
Object | value4 |
Object[] | values |
ValueStack | vstack Default place for function results.
|
int | where Encoding of where the arguments are.
|
Method Summary | |
---|---|
void | cleanupFromContext(int oldIndex) Cleanup-only part of getFromContext.
|
Object[] | getArgs() |
Environment | getEnvironment() |
Environment | getEnvironmentRaw() |
Object | getFromContext(int oldIndex) Routine to extract result and restore state after startFromContext. |
static CallContext | getInstance() Get or create a CallContext for the current thread. |
Object | getNextArg() Get the next incoming argument.
|
Object | getNextArg(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. |
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 | popFluid() |
void | pushFluid(Location loc) |
void | runUntilDone() |
Object | runUntilValue() Run until no more continuations, returning final result. |
void | runUntilValue(Consumer out) Run until no more continuations, sending result to a COnsumer. |
void | setEnvironmentRaw(Environment env) |
static void | setInstance(CallContext ctx) |
int | startFromContext() Setup routine before calling a method that takes a CallContext.
|
void | writeValue(Object value) Write values (of function result) to current consumer. |