Interface JexlContext
- All Known Implementing Classes:
MapContext
,ObjectContext
,ReadonlyContext
,UnifiedJEXL.TemplateContext
public interface JexlContext
Manages variables which can be referenced in a JEXL expression.
Note that JEXL may use '$jexl' and '$ujexl' variables for internal purpose; setting or getting those variables may lead to unexpected results unless specified otherwise.
- Since:
- 1.0
- Version:
- $Id: JexlContext.java 1202769 2011-11-16 16:33:02Z henrib $
-
Method Summary
-
Method Details
-
get
Gets the value of a variable.- Parameters:
name
- the variable's name- Returns:
- the value
-
set
Sets the value of a variable.- Parameters:
name
- the variable's namevalue
- the variable's value
-
has
Checks whether a variable is defined in this context.A variable may be defined with a null value; this method checks whether the value is null or if the variable is undefined.
- Parameters:
name
- the variable's name- Returns:
- true if it exists, false otherwise
-