Class Script.Callable
java.lang.Object
org.apache.commons.jexl3.internal.Script.Callable
- Enclosing class:
Script
Implements the Future and Callable interfaces to help delegation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Interpreter
The actual interpreter.protected Object
Use interpreter as marker for not having run. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
interpreter
The actual interpreter. -
result
Use interpreter as marker for not having run.
-
-
Constructor Details
-
Callable
The base constructor.- Parameters:
intrprtr
- the interpreter to use
-
-
Method Details
-
call
-
cancel
public boolean cancel()Soft cancel the execution.- Returns:
- true if cancel was successful, false otherwise
-
interpret
Run the interpreter.- Returns:
- the evaluation result
-
isCancellable
public boolean isCancellable()- Returns:
- true if interruption will throw a JexlException.Cancel, false otherwise
-
isCancelled
public boolean isCancelled()- Returns:
- true if evaluation was cancelled, false otherwise
-