Ejemplo n.º 1
0
  public ExpressionBuilder(String expression, ELContext ctx) throws ELException {
    this.expression = expression;

    FunctionMapper ctxFn = ctx.getFunctionMapper();
    VariableMapper ctxVar = ctx.getVariableMapper();

    if (ctxFn != null) {
      this.fnMapper = new FunctionMapperFactory(ctxFn);
    }
    if (ctxVar != null) {
      this.varMapper = new VariableMapperFactory(ctxVar);
    }
  }