Class EvaluationContext

java.lang.Object
jakarta.el.ELContext
org.glassfish.expressly.lang.EvaluationContext

public final class EvaluationContext extends jakarta.el.ELContext
The context for Jakarta Expression expression evaluation. This wrapper ELContext captures the function mapper and the variable mapper at the point when the expression is parsed, and only for those functions and variable used in the expression.
  • Field Details

    • elContext

      private final jakarta.el.ELContext elContext
    • fnMapper

      private final jakarta.el.FunctionMapper fnMapper
    • varMapper

      private final jakarta.el.VariableMapper varMapper
  • Constructor Details

    • EvaluationContext

      public EvaluationContext(jakarta.el.ELContext elContext, jakarta.el.FunctionMapper fnMapper, jakarta.el.VariableMapper varMapper)
  • Method Details

    • getELContext

      public jakarta.el.ELContext getELContext()
    • getFunctionMapper

      public jakarta.el.FunctionMapper getFunctionMapper()
      Specified by:
      getFunctionMapper in class jakarta.el.ELContext
    • getVariableMapper

      public jakarta.el.VariableMapper getVariableMapper()
      Specified by:
      getVariableMapper in class jakarta.el.ELContext
    • getContext

      public Object getContext(Class<?> key)
      Overrides:
      getContext in class jakarta.el.ELContext
    • getELResolver

      public jakarta.el.ELResolver getELResolver()
      Specified by:
      getELResolver in class jakarta.el.ELContext
    • isPropertyResolved

      public boolean isPropertyResolved()
      Overrides:
      isPropertyResolved in class jakarta.el.ELContext
    • putContext

      public void putContext(Class<?> key, Object contextObject)
      Overrides:
      putContext in class jakarta.el.ELContext
    • setPropertyResolved

      public void setPropertyResolved(boolean resolved)
      Overrides:
      setPropertyResolved in class jakarta.el.ELContext
    • setPropertyResolved

      public void setPropertyResolved(Object base, Object property)
      Overrides:
      setPropertyResolved in class jakarta.el.ELContext
    • addEvaluationListener

      public void addEvaluationListener(jakarta.el.EvaluationListener listener)
      Overrides:
      addEvaluationListener in class jakarta.el.ELContext
    • getEvaluationListeners

      public List<jakarta.el.EvaluationListener> getEvaluationListeners()
      Overrides:
      getEvaluationListeners in class jakarta.el.ELContext
    • notifyBeforeEvaluation

      public void notifyBeforeEvaluation(String expr)
      Overrides:
      notifyBeforeEvaluation in class jakarta.el.ELContext
    • notifyAfterEvaluation

      public void notifyAfterEvaluation(String expr)
      Overrides:
      notifyAfterEvaluation in class jakarta.el.ELContext
    • notifyPropertyResolved

      public void notifyPropertyResolved(Object base, Object property)
      Overrides:
      notifyPropertyResolved in class jakarta.el.ELContext
    • isLambdaArgument

      public boolean isLambdaArgument(String arg)
      Overrides:
      isLambdaArgument in class jakarta.el.ELContext
    • getLambdaArgument

      public Object getLambdaArgument(String arg)
      Overrides:
      getLambdaArgument in class jakarta.el.ELContext
    • enterLambdaScope

      public void enterLambdaScope(Map<String,Object> args)
      Overrides:
      enterLambdaScope in class jakarta.el.ELContext
    • exitLambdaScope

      public void exitLambdaScope()
      Overrides:
      exitLambdaScope in class jakarta.el.ELContext
    • convertToType

      public <T> T convertToType(Object obj, Class<T> targetType)
      Overrides:
      convertToType in class jakarta.el.ELContext
    • getImportHandler

      public jakarta.el.ImportHandler getImportHandler()
      Overrides:
      getImportHandler in class jakarta.el.ELContext