Class BaseFEELFunction

    • Constructor Detail

      • BaseFEELFunction

        public BaseFEELFunction​(String name)
    • Method Detail

      • setName

        public void setName​(String name)
      • invoke

        public Object invoke​(EvaluationContext ctx,
                             Object[] params)
        this method should be overriden by custom function implementations that should be invoked reflectively
        Parameters:
        ctx -
        params -
        Returns:
      • getParameters

        public List<List<FEELFunction.Param>> getParameters()
        Description copied from interface: FEELFunction
        Returns the parameter for each supported signature.
        Specified by:
        getParameters in interface FEELFunction
        Returns:
        a List of Lists of Strings with the parameters. For a function with multiple signatures, each element of the list returns the parameters of one signature. E.g.: the substring function has 2 supported signatures: substring( string, start position ) substring( string, start position, length ) So this method will return: { { "string", "start position" }, { "string", "start position", "length" } }
      • isCustomFunction

        protected boolean isCustomFunction()