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 Object
implements ExecutableScript


Constructor Summary
MvelScriptEngineService.MvelExecutableScript(Object script, Map vars)
           
 
Method Summary
 Object run()
          Executes the script.
 void setNextVar(String name, Object value)
           
 Object unwrap(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(Object script,
                                                    Map vars)
Method Detail

setNextVar

public void setNextVar(String name,
                       Object value)
Specified by:
setNextVar in interface ExecutableScript

run

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

Specified by:
run in interface ExecutableScript

unwrap

public Object unwrap(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


Copyright © 2009-2012. All Rights Reserved.