net.sf.jga.scripting
Class FunctorScript

java.lang.Object
  extended by javax.script.CompiledScript
      extended by net.sf.jga.scripting.FunctorScript

public class FunctorScript
extends javax.script.CompiledScript

FunctorScript.java

Copyright © 2007 David Hall

Author:
David Hall

Constructor Summary
FunctorScript(javax.script.ScriptEngine engine, UnaryFunctor<javax.script.ScriptContext,?> fn)
           
 
Method Summary
 java.lang.Object eval()
           
 java.lang.Object eval(javax.script.Bindings bindings)
           
 java.lang.Object eval(javax.script.ScriptContext context)
           
 javax.script.ScriptEngine getEngine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctorScript

public FunctorScript(javax.script.ScriptEngine engine,
                     UnaryFunctor<javax.script.ScriptContext,?> fn)
Method Detail

eval

public java.lang.Object eval(javax.script.ScriptContext context)
                      throws javax.script.ScriptException
Specified by:
eval in class javax.script.CompiledScript
Throws:
javax.script.ScriptException

eval

public java.lang.Object eval(javax.script.Bindings bindings)
                      throws javax.script.ScriptException
Overrides:
eval in class javax.script.CompiledScript
Throws:
javax.script.ScriptException

eval

public java.lang.Object eval()
                      throws javax.script.ScriptException
Overrides:
eval in class javax.script.CompiledScript
Throws:
javax.script.ScriptException

getEngine

public javax.script.ScriptEngine getEngine()
Specified by:
getEngine in class javax.script.CompiledScript


Copyright © 2002-2006 David A. Hall. All Rights Reserved.