public final class JexlContextMap
extends java.lang.Object
implements org.apache.commons.jexl2.JexlContext
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.
Constructor and Description |
---|
JexlContextMap(ParametersCallbackMap parametersMap)
Initializes instance and set parent parameters.
|
JexlContextMap(ParametersCallback parentParameters,
QueryCallback queryCallback)
Initializes instance and set parent parameters with query callback..
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String name) |
boolean |
has(java.lang.String name) |
void |
set(java.lang.String name,
java.lang.Object value) |
public JexlContextMap(ParametersCallbackMap parametersMap)
parametersMap
- parent parameters.public JexlContextMap(ParametersCallback parentParameters, QueryCallback queryCallback)
parentParameters
- parent parameters.queryCallback
- query callbackpublic java.lang.Object get(java.lang.String name)
get
in interface org.apache.commons.jexl2.JexlContext
public void set(java.lang.String name, java.lang.Object value)
set
in interface org.apache.commons.jexl2.JexlContext
public boolean has(java.lang.String name)
has
in interface org.apache.commons.jexl2.JexlContext
Copyright © Copyright 2006-2019 The Scriptella Project Team.