Package com.schibsted.spt.data.jslt
Class FunctionUtils
- java.lang.Object
-
- com.schibsted.spt.data.jslt.FunctionUtils
-
public class FunctionUtils extends java.lang.ObjectUseful methods for working with Functions.
-
-
Constructor Summary
Constructors Constructor Description FunctionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FunctionwrapStaticMethod(java.lang.String functionName, java.lang.String className, java.lang.String methodName)Create a JSLT function from a static Java method.static FunctionwrapStaticMethod(java.lang.String functionName, java.lang.String className, java.lang.String methodName, java.lang.Class[] paramTypes)Create a JSLT function from a static Java method.
-
-
-
Method Detail
-
wrapStaticMethod
public static Function wrapStaticMethod(java.lang.String functionName, java.lang.String className, java.lang.String methodName) throws java.lang.LinkageError, java.lang.ExceptionInInitializerError, java.lang.ClassNotFoundException
Create a JSLT function from a static Java method. This will fail if the method is overloaded.- Throws:
java.lang.LinkageErrorjava.lang.ExceptionInInitializerErrorjava.lang.ClassNotFoundException
-
wrapStaticMethod
public static Function wrapStaticMethod(java.lang.String functionName, java.lang.String className, java.lang.String methodName, java.lang.Class[] paramTypes) throws java.lang.LinkageError, java.lang.ExceptionInInitializerError, java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
Create a JSLT function from a static Java method.- Parameters:
paramTypes- Array of types used to match overloaded methods.- Throws:
java.lang.LinkageErrorjava.lang.ExceptionInInitializerErrorjava.lang.ClassNotFoundExceptionjava.lang.NoSuchMethodException
-
-