public class VarContext
extends java.lang.Object
This is a glorified name/value map implementing the handling of query variables.
The glory comes from the implementation of a thread-local (and therefore call stack bound) stack of frames.
Constructor and Description |
---|
VarContext() |
Modifier and Type | Method and Description |
---|---|
static VarContext |
ctx() |
<T> Var<T> |
get(java.lang.String name) |
<T> T |
getGlobalValue(java.lang.String name) |
boolean |
isSameVar(Var<?> v1,
Var<?> v2) |
static VarContext |
popFrame() |
static VarContext |
pushFrame() |
static VarContext |
pushFrame(VarContext ctx) |
<T> void |
setGlobalValue(java.lang.String name,
T value) |
public static VarContext pushFrame()
public static VarContext pushFrame(VarContext ctx)
public static VarContext popFrame()
public static VarContext ctx()
public <T> Var<T> get(java.lang.String name)
public <T> T getGlobalValue(java.lang.String name)
public <T> void setGlobalValue(java.lang.String name, T value)