Class APreprocessingFunction

    • Constructor Detail

      • APreprocessingFunction

        public APreprocessingFunction()
    • Method Detail

      • applyFunction

        public Instance applyFunction​(Instance inst,
                                      String property,
                                      String... arguments)
        Description copied from interface: IPreprocessingFunction
        Applies the function to this instance
        Specified by:
        applyFunction in interface IPreprocessingFunction
        Parameters:
        inst - the instance that will be preprocessed
        property - for unary operators this is the property on which the function will be applied, for n-ary fucntions this is the name of the new property where the result of the preprocessing will be stored
        arguments - some functions take arguments
        Returns:
        the preprocessed instance
      • retrieveArguments

        public String[] retrieveArguments​(String args)
        Retrieves the arguments for a function, but ignores the function id
        Parameters:
        args - the string from the config e.g. replace(test,)
        Returns:
        array containing only the arguments without function id e.g. [test,]
      • sanityCheckArguments

        public void sanityCheckArguments​(String args)
      • retrieveKeywordArgumentValue

        public String retrieveKeywordArgumentValue​(String arg,
                                                   String keyword)