private final class JexlScriptEngine.JexlContextWrapper extends java.lang.Object implements JexlContext
Modifier and Type | Field and Description |
---|---|
private javax.script.ScriptContext |
scriptContext
The wrapped script context.
|
Modifier | Constructor and Description |
---|---|
private |
JexlContextWrapper(javax.script.ScriptContext theContext)
Creates a context wrapper.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name)
Gets the value of a variable.
|
boolean |
has(java.lang.String name)
Checks whether a variable is defined in this context.
|
void |
set(java.lang.String name,
java.lang.Object value)
Sets the value of a variable.
|
private final javax.script.ScriptContext scriptContext
private JexlContextWrapper(javax.script.ScriptContext theContext)
theContext
- the engine context.public java.lang.Object get(java.lang.String name)
get
in interface JexlContext
name
- the variable's namepublic void set(java.lang.String name, java.lang.Object value)
set
in interface JexlContext
name
- the variable's namevalue
- the variable's valuepublic boolean has(java.lang.String name)
A variable may be defined with a null value; this method checks whether the value is null or if the variable is undefined.
has
in interface JexlContext
name
- the variable's name