org.elasticsearch.script.mvel
Class MvelScriptEngineService.MvelExecutableScript

java.lang.Object
  extended by org.elasticsearch.script.mvel.MvelScriptEngineService.MvelExecutableScript
All Implemented Interfaces:
ExecutableScript
Enclosing class:
MvelScriptEngineService

public static class MvelScriptEngineService.MvelExecutableScript
extends java.lang.Object
implements ExecutableScript


Constructor Summary
MvelScriptEngineService.MvelExecutableScript(java.lang.Object compiledScript, java.util.Map vars)
           
 
Method Summary
 java.lang.Object run()
          Executes the script.
 java.lang.Object run(java.util.Map vars)
          Executes the script.
 java.lang.Object unwrap(java.lang.Object value)
          Unwraps a possible script value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MvelScriptEngineService.MvelExecutableScript

public MvelScriptEngineService.MvelExecutableScript(java.lang.Object compiledScript,
                                                    java.util.Map vars)
Method Detail

run

public java.lang.Object run()
Description copied from interface: ExecutableScript
Executes the script.

Specified by:
run in interface ExecutableScript

run

public java.lang.Object run(java.util.Map vars)
Description copied from interface: ExecutableScript
Executes the script.

Specified by:
run in interface ExecutableScript

unwrap

public java.lang.Object unwrap(java.lang.Object value)
Description copied from interface: ExecutableScript
Unwraps a possible script value. For example, when passing vars and expecting the returned value to be part of the vars.

Specified by:
unwrap in interface ExecutableScript