public class VarContext extends 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(String name) |
<T> T |
getGlobalValue(String name) |
boolean |
isSameVar(Var<?> v1,
Var<?> v2) |
static VarContext |
popFrame() |
static VarContext |
pushFrame() |
static VarContext |
pushFrame(VarContext ctx) |
<T> void |
setGlobalValue(String name,
T value) |
public static VarContext pushFrame()
public static VarContext pushFrame(VarContext ctx)
public static VarContext popFrame()
public static VarContext ctx()
public <T> T getGlobalValue(String name)
public <T> void setGlobalValue(String name, T value)
Copyright © 2015. All rights reserved.