org.neo4j.server.scripting.javascript
Class JavascriptExecutor

java.lang.Object
  extended by org.neo4j.server.scripting.javascript.JavascriptExecutor
All Implemented Interfaces:
ScriptExecutor

public class JavascriptExecutor
extends Object
implements ScriptExecutor


Nested Class Summary
static class JavascriptExecutor.Factory
           
 
Constructor Summary
JavascriptExecutor(String script)
           
 
Method Summary
 Object execute(Map<String,Object> variables)
          Execute the contained script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptExecutor

public JavascriptExecutor(String script)
Method Detail

execute

public Object execute(Map<String,Object> variables)
               throws EvaluationException
Description copied from interface: ScriptExecutor
Execute the contained script.

Specified by:
execute in interface ScriptExecutor
Parameters:
variables - Is variables that should be available to the script.
Returns:
Throws:
EvaluationException


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.