|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.mapping.CallContext
public class CallContext
A procedure activation stack (when compiled with explicit stacks).
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
|
protected java.lang.String |
baseUri
|
protected static java.lang.String |
baseUriDefault
|
Consumer |
consumer
Function results are written to this Consumer. |
int |
count
Number of actual arguments. |
int |
ivalue1
|
int |
ivalue2
|
int |
next
Index of next argument. |
int |
pc
The program location in the current procedure. |
Procedure |
proc
|
java.lang.Object |
value1
Used for passing parameters. |
java.lang.Object |
value2
|
java.lang.Object |
value3
|
java.lang.Object |
value4
|
java.lang.Object[] |
values
|
ValueStack |
vstack
Default place for function results. |
int |
where
Encoding of where the arguments are. |
Constructor Summary | |
---|---|
CallContext()
|
Method Summary | |
---|---|
void |
cleanupFromContext(int oldIndex)
Cleanup-only part of getFromContext. |
java.lang.Object[] |
getArgs()
|
java.lang.String |
getBaseUri()
|
static java.lang.String |
getBaseUriDefault()
|
java.lang.String |
getBaseUriRaw()
|
Environment |
getEnvironment()
|
Environment |
getEnvironmentRaw()
|
java.lang.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. |
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 |
popFluid()
|
void |
pushFluid(Location loc)
|
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. |
void |
setBaseUri(java.lang.String baseUri)
Set the current "base URI". |
void |
setEnvironmentRaw(Environment env)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Procedure proc
public int pc
public ValueStack vstack
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
protected java.lang.String baseUri
protected static java.lang.String baseUriDefault
Constructor Detail |
---|
public CallContext()
Method Detail |
---|
public final Environment getEnvironmentRaw()
public final void setEnvironmentRaw(Environment env)
public final Environment getEnvironment()
public static void setInstance(CallContext ctx)
public static CallContext getOnlyInstance()
public static CallContext getInstance()
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.Throwable
public final int startFromContext()
public final java.lang.Object getFromContext(int oldIndex) throws java.lang.Throwable
java.lang.Throwable
public final void cleanupFromContext(int oldIndex) throws java.lang.Throwable
java.lang.Throwable
public final java.lang.Object runUntilValue() throws java.lang.Throwable
java.lang.Throwable
public final void runUntilValue(Consumer out) throws java.lang.Throwable
java.lang.Throwable
public void writeValue(java.lang.Object value)
public static java.lang.String getBaseUriDefault()
public java.lang.String getBaseUriRaw()
public java.lang.String getBaseUri()
public void setBaseUri(java.lang.String baseUri)
public final void pushFluid(Location loc)
public final void popFluid()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |