|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.internal.Script.Callable
public class Script.Callable
Implements the Future and Callable interfaces to help delegation.
Field Summary | |
---|---|
protected Interpreter |
interpreter
The actual interpreter. |
protected Object |
result
Use interpreter as marker for not having run. |
Constructor Summary | |
---|---|
protected |
Script.Callable(Interpreter intrprtr)
The base constructor. |
Method Summary | |
---|---|
Object |
call()
|
boolean |
cancel()
Soft cancel the execution. |
protected Object |
interpret()
Run the interpreter. |
boolean |
isCancellable()
|
boolean |
isCancelled()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Interpreter interpreter
protected volatile Object result
Constructor Detail |
---|
protected Script.Callable(Interpreter intrprtr)
intrprtr
- the interpreter to useMethod Detail |
---|
protected Object interpret()
public Object call() throws Exception
call
in interface Callable<Object>
Exception
public boolean cancel()
public boolean isCancelled()
public boolean isCancellable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |