Interface SimpleFunctionRegistry

All Superinterfaces:
AutoCloseable, Service, StaticService

public interface SimpleFunctionRegistry extends StaticService
Registry for custom simple functions.
  • Method Details

    • addFunction

      void addFunction(String name, Expression expression)
      Add a custom simple function
      Parameters:
      name - name of custom simple function
      expression - the expression to use as the function
    • addFunction

      void addFunction(SimpleFunction function)
      Add a custom simple function
      Parameters:
      function - the function to add
    • removeFunction

      void removeFunction(String name)
      Remove a custom simple function
      Parameters:
      name - name of function
    • getFunction

      Expression getFunction(String name)
      Gets the function (will resolve custom functions from registry)
      Parameters:
      name - name of function
      Returns:
      the function, or null if no function exists
    • getCustomFunctionNames

      Set<String> getCustomFunctionNames()
      Returns a set with all the custom function names currently in use
    • getCoreFunctionNames

      Set<String> getCoreFunctionNames()
      Returns a set with all the core/built-in function names
    • customSize

      int customSize()
      Number of custom functions currently in use
    • coreSize

      int coreSize()
      Number of core functions