A JEXL Script.
A script is some valid JEXL syntax to be executed with
a given set of JexlContext variables.
A script is a group of statements, separated by semicolons.
The statements can be blocks (curly braces containing code),
Control statements such as if and while
as well as expressions and assignment statements.
| Modifier and Type | Method and Description |
|---|---|
| public Callable | |
| public Callable | Returns: the callablethe context context, Object... the script arguments args)Creates a Callable from this script. |
| public Object | Returns: The result of this script, usually the result of the last statement.A JexlContext containing variables. context)Executes the script with the variables contained in the
supplied |
| public Object | Returns: The result of this script, usually the result of the last statement.A JexlContext containing variables. context, Object... the arguments args)Executes the script with the variables contained in the
supplied |
| public String[] | |
| public String[] | |
| public String | |
| public Set |
| callable | back to summary |
|---|---|
| public Callable Creates a Callable from this script. This allows to submit it to an executor pool and provides support for asynchronous calls. The interpreter will handle interruption/cancellation gracefully if needed.
| |
| callable | back to summary |
|---|---|
| public Callable Creates a Callable from this script. This allows to submit it to an executor pool and provides support for asynchronous calls. The interpreter will handle interruption/cancellation gracefully if needed.
| |
| execute | back to summary |
|---|---|
| public Object execute(JexlContext context) Executes the script with the variables contained in the
supplied
| |
| execute | back to summary |
|---|---|
| public Object execute(JexlContext context, Object... args) Executes the script with the variables contained in the
supplied
| |
| getLocalVariables | back to summary |
|---|---|
| public String[] getLocalVariables() Gets this script local variables.
| |
| getParameters | back to summary |
|---|---|
| public String[] getParameters() Gets this script parameters.
| |
| getText | back to summary |
|---|---|
| public String getText() Returns the text of this Script.
| |
| getVariables | back to summary |
|---|---|
| public Set Gets this script variables. Note that since variables can be in an ant-ish form (ie foo.bar.quux), each variable is returned as a list of strings where each entry is a fragment of the variable ({"foo", "bar", "quux"} in the example. | |