Class NativeFunctions


  • public class NativeFunctions
    extends java.lang.Object
    A container of native functions. It stores both pre-built function overloads (NativeFunction) and dynamic generators of functions (FunctionFactory).
    • Constructor Detail

      • NativeFunctions

        public NativeFunctions()
    • Method Detail

      • getFunctions

        public java.util.Collection<NativeFunction> getFunctions​(FunctionName name)
        Returns all the registered pre-built functions overloads with the specified name.
        Parameters:
        name - a function name
        Returns:
        the pre-built functions with the specified name
      • getFunctions

        public java.util.Collection<NativeFunction> getFunctions()
        Returns:
        all the registered pre-built functions.
      • getFactories

        public java.util.Collection<FunctionFactory> getFactories​(FunctionName name)
        Returns all the registered functions factories with the specified name.
        Parameters:
        name - a function name
        Returns:
        the function factories with the specified name
      • getFactories

        public java.util.Collection<FunctionFactory> getFactories()
        Returns:
        all the registered functions factories.
      • hasFactory

        public boolean hasFactory​(FunctionName name)
        Returns whether there is a function factory with the specified name.
        Parameters:
        name - a function name
        Returns:
        true if there is a factory with the specified name, false otherwise