Package com.schibsted.spt.data.jslt
Class FunctionUtils
- java.lang.Object
-
- com.schibsted.spt.data.jslt.FunctionUtils
-
public class FunctionUtils extends java.lang.Object
Useful 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 Function
wrapStaticMethod(java.lang.String functionName, java.lang.String className, java.lang.String methodName)
Create a JSLT function from a static Java method.static Function
wrapStaticMethod(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.LinkageError
java.lang.ExceptionInInitializerError
java.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.LinkageError
java.lang.ExceptionInInitializerError
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
-
-