Package scriptella.driver.jexl
Class JexlContextMap
java.lang.Object
scriptella.driver.jexl.JexlContextMap
- All Implemented Interfaces:
org.apache.commons.jexl2.JexlContext
Mutable
JexlContext implementation for
integration into Scriptella execution environment.
This class allows local variables to be set via set(String, Object) method.
get(String) allows reading variables.
Important: This class is used instead of MapContext because
due to parameters model limitations and performance reasons has(String) method should always return true.
- Version:
- 1.1
- Author:
- Fyodor Kupolov
-
Constructor Summary
ConstructorsConstructorDescriptionJexlContextMap(ParametersCallbackMap parametersMap) Initializes instance and set parent parameters.JexlContextMap(ParametersCallback parentParameters, QueryCallback queryCallback) Initializes instance and set parent parameters with query callback.. -
Method Summary
-
Constructor Details
-
JexlContextMap
Initializes instance and set parent parameters.- Parameters:
parametersMap- parent parameters.
-
JexlContextMap
Initializes instance and set parent parameters with query callback..- Parameters:
parentParameters- parent parameters.queryCallback- query callback
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.apache.commons.jexl2.JexlContext
-
set
- Specified by:
setin interfaceorg.apache.commons.jexl2.JexlContext
-
has
- Specified by:
hasin interfaceorg.apache.commons.jexl2.JexlContext
-