Class ELEval

java.lang.Object
io.keikaiex.formula.ELEval
All Implemented Interfaces:
FreeRefFunction

public class ELEval extends Object implements FreeRefFunction
A function that does ZK EL (Expression Language) evaluation — implements the Excel formula =ELEVAL("expr") so customer spreadsheets can embed EL into a cell.

POI removal Keikai-native rewrite — switched from POI's org.apache.poi.ss.formula.functions.FreeRefFunction to Keikai's FreeRefFunction. Behaviour is unchanged: when no ZK EL context is on the thread (headless mode) the function returns #NAME?; otherwise the EL expression is evaluated via reflection on org.zkoss.xel.Expressions.

Author:
henrichen
  • Field Details

  • Method Details

    • 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.