Interface IFunctionHandler


public interface IFunctionHandler
  • Method Details

    • getName

      String getName()
      Returns:
      The name of function being handled
    • getPrototypes

      List<Class[]> getPrototypes()
      Returns:
      List of allowed prototypes for this function. Each prototype is an array of Class, corresponding to the types of the expected arguments. The first matching prototype is used.
    • rawArgs

      boolean rawArgs()
      Returns:
      true if this handler should be fed the raw argument list if no prototype matches it
    • realTime

      boolean realTime()
      Returns:
      true if the result of this handler depends on some dynamic data source, and the expression cannot be pre-computed before the question is reached (un-supported)
    • eval

      Object eval​(Object[] args, EvaluationContext ec)
      Evaluate the function