Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl3.internal
Class Script.Callable

    java.lang.Object
      org.apache.commons.jexl3.internal.Script.Callable

All Implemented Interfaces:
  Callable<Object>

Enclosing class:
  Script

    public class Script.Callable

extends Object
implements Callable<Object>

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

### interpreter

    protected final Interpreter interpreter

  The actual interpreter.

### result

    protected volatile Object result

  Use interpreter as marker for not having run.

Constructor Detail

### Script.Callable

    protected Script.Callable(Interpreter intrprtr)

  The base constructor.

  Parameters:
    `intrprtr` - the interpreter to use

Method Detail

### interpret

    protected Object interpret()

  Run the interpreter.

  Returns:
    the evaluation result

### call

    public Object call()
                throws Exception

  Specified by:
    `call` in interface `Callable<Object>`
  Throws:
    `Exception`

### cancel

    public boolean cancel()

  Soft cancel the execution.

  Returns:
    true if cancel was successful, false otherwise

### isCancelled

    public boolean isCancelled()

  Returns:
    true if evaluation was cancelled, false otherwise

### isCancellable

    public boolean isCancellable()

  Returns:
    true if interruption will throw a JexlException.Cancel, false otherwise

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.