Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FunctionUtils

        public FunctionUtils()
    • 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