org.shapelogic.scripting
Class FunctionCalcIndex1<In,E>

java.lang.Object
  extended by org.shapelogic.scripting.BaseScriptingFunction
      extended by org.shapelogic.scripting.FunctionCalcIndex1<In,E>
All Implemented Interfaces:
CalcIndex1<In,E>

public class FunctionCalcIndex1<In,E>
extends BaseScriptingFunction
implements CalcIndex1<In,E>

IndexTransform based on an expression in a Scripting language using JSR 223. Requires Groovy to be installed. Need special installation of groovy-engine.jar that need to be downloade from Sun. Requires that the scripting language support the invocable interface.

Author:
Sami Badawi

Field Summary
 
Fields inherited from class org.shapelogic.scripting.BaseScriptingFunction
_expression, _functionName, _language, _scriptEngine, DEFAULT_LANGUAGE
 
Constructor Summary
FunctionCalcIndex1(java.lang.String name, java.lang.String expression)
           
FunctionCalcIndex1(java.lang.String functionName, java.lang.String expression, java.lang.String language)
           
 
Method Summary
 E invoke(In input, int index)
           
 
Methods inherited from class org.shapelogic.scripting.BaseScriptingFunction
getScriptEngine, put
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionCalcIndex1

public FunctionCalcIndex1(java.lang.String functionName,
                          java.lang.String expression,
                          java.lang.String language)

FunctionCalcIndex1

public FunctionCalcIndex1(java.lang.String name,
                          java.lang.String expression)
Method Detail

invoke

public E invoke(In input,
                int index)
Specified by:
invoke in interface CalcIndex1<In,E>


Copyright © 2009. All Rights Reserved.