Class AbstractParserFunction

    • Constructor Detail

      • AbstractParserFunction

        public AbstractParserFunction()
    • Method Detail

      • getFunctionName

        public abstract String getFunctionName()
        Returns the function name. Can only consist of letters, underscores, numbers.
        Specified by:
        getFunctionName in interface ParserFunction
        Returns:
        the name of the function
      • getFunctionHelp

        public abstract String getFunctionHelp()
        Returns the help string for the function.
        Specified by:
        getFunctionHelp in interface ParserFunction
        Returns:
        the help string
      • check

        protected abstract String check​(Object[] params)
        Performs some checks on the input parameters.
        Parameters:
        params - the input parameters
        Returns:
        null if OK, otherwise error message
      • doCallFunction

        protected abstract Object doCallFunction​(Object[] params)
        Gets called from the parser.
        Parameters:
        params - the parameters obtained through the parser
        Returns:
        the result to be used further in the parser
      • callFunction

        public Object callFunction​(Object[] params)
        Gets called from the parser.
        Specified by:
        callFunction in interface ParserFunction
        Parameters:
        params - the parameters obtained through the parser
        Returns:
        the result to be used further in the parser
      • getFunctions

        public static String[] getFunctions()
        Returns a list with classnames of functions.
        Returns:
        the filter classnames