Class ELEvalFunction

java.lang.Object
io.keikaiex.formula.ELEvalFunction
All Implemented Interfaces:
FreeRefFunction, Serializable

public class ELEvalFunction extends Object implements FreeRefFunction, Serializable
Default function that delegates a Keikai formula call to a TLD-defined EL function (registered via <?taglib?> in the active ZUL).

POI removal Keikai-native rewrite — implements FreeRefFunction only (POI's separate Function interface is gone; the no-context overload is folded into the single evaluate(ValueEval[], Object) entry point).

Author:
henrichen, dennischen
See Also:
  • Constructor Details

    • ELEvalFunction

      public ELEvalFunction(String name)
  • Method Details

    • hasFunction

      public boolean hasFunction()
      Returns:
      true iff the named function resolves in the current XelContext.
    • evaluate

      public ValueEval evaluate(ValueEval[] args, Object ec)
      Description copied from interface: FreeRefFunction
      Evaluate the user function.
      Specified by:
      evaluate in interface FreeRefFunction
      Parameters:
      args - the parsed argument values (numeric / string / boolean / error / blank Eval instances)
      ec - opaque evaluation context (currently null under the Rust path; future Keikai-native contexts will pass cell position info)
      Returns:
      the function result; null or BlankEval.INSTANCE for an empty result.