Package org.apache.el.lang
Class EvaluationContext
java.lang.Object
jakarta.el.ELContext
org.apache.el.lang.EvaluationContext
- 
Constructor SummaryConstructorsConstructorDescriptionEvaluationContext(ELContext elContext, FunctionMapper fnMapper, VariableMapper varMapper) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddEvaluationListener(EvaluationListener listener) Register an EvaluationListener with this ELContext.<T> TconvertToType(Object obj, Class<T> type) Coerce the supplied object to the requested type.voidenterLambdaScope(Map<String, Object> arguments) Called when starting to evaluate a lambda expression so that the arguments are available to the EL context during evaluation.voidCalled after evaluating a lambda expression to signal that the arguments are no longer required.getContext(Class<?> key) Obtain the context object for the given key.Obtain the list of registered EvaluationListeners.Obtain the ImportHandler for this ELContext, creating one if necessary.getLambdaArgument(String name) Obtain the value of the lambda argument with the given name.booleanisLambdaArgument(String name) Determine if the specified name is recognised as the name of a lambda argument.booleanvoidnotifyAfterEvaluation(String expression) Notify interested listeners that an expression has been evaluated.voidnotifyBeforeEvaluation(String expression) Notify interested listeners that an expression will be evaluated.voidnotifyPropertyResolved(Object base, Object property) Notify interested listeners that a property has been resolved.voidputContext(Class<?> key, Object contextObject) Add an object to this EL context under the given key.voidsetLambdaExpressionNestedState(LambdaExpressionNestedState lambdaExpressionNestedState) voidvoidsetPropertyResolved(boolean resolved) voidsetPropertyResolved(Object base, Object property) Mark the given property as resolved and notify any interested listeners.
- 
Constructor Details- 
EvaluationContext
 
- 
- 
Method Details- 
getELContext
- 
getFunctionMapper- Specified by:
- getFunctionMapperin class- ELContext
 
- 
getVariableMapper- Specified by:
- getVariableMapperin class- ELContext
 
- 
getContextDescription copied from class:jakarta.el.ELContextObtain the context object for the given key.- Overrides:
- getContextin class- ELContext
- Parameters:
- key- The key of the required context object
- Returns:
- The value of the context object associated with the given key
 
- 
getELResolver- Specified by:
- getELResolverin class- ELContext
 
- 
isPropertyResolvedpublic boolean isPropertyResolved()- Overrides:
- isPropertyResolvedin class- ELContext
 
- 
putContextDescription copied from class:jakarta.el.ELContextAdd an object to this EL context under the given key.- Overrides:
- putContextin class- ELContext
- Parameters:
- key- The key under which to store the object
- contextObject- The object to add
 
- 
setPropertyResolvedpublic void setPropertyResolved(boolean resolved) - Overrides:
- setPropertyResolvedin class- ELContext
 
- 
getLocale
- 
setLocale
- 
setPropertyResolvedDescription copied from class:jakarta.el.ELContextMark the given property as resolved and notify any interested listeners.- Overrides:
- setPropertyResolvedin class- ELContext
- Parameters:
- base- The base object on which the property was found
- property- The property that was resolved
 
- 
getImportHandlerDescription copied from class:jakarta.el.ELContextObtain the ImportHandler for this ELContext, creating one if necessary. This method is not thread-safe.- Overrides:
- getImportHandlerin class- ELContext
- Returns:
- the ImportHandler for this ELContext.
 
- 
addEvaluationListenerDescription copied from class:jakarta.el.ELContextRegister an EvaluationListener with this ELContext.- Overrides:
- addEvaluationListenerin class- ELContext
- Parameters:
- listener- The EvaluationListener to register
 
- 
getEvaluationListenersDescription copied from class:jakarta.el.ELContextObtain the list of registered EvaluationListeners.- Overrides:
- getEvaluationListenersin class- ELContext
- Returns:
- A list of the EvaluationListener registered with this ELContext
 
- 
notifyBeforeEvaluationDescription copied from class:jakarta.el.ELContextNotify interested listeners that an expression will be evaluated.- Overrides:
- notifyBeforeEvaluationin class- ELContext
- Parameters:
- expression- The expression that will be evaluated
 
- 
notifyAfterEvaluationDescription copied from class:jakarta.el.ELContextNotify interested listeners that an expression has been evaluated.- Overrides:
- notifyAfterEvaluationin class- ELContext
- Parameters:
- expression- The expression that was evaluated
 
- 
notifyPropertyResolvedDescription copied from class:jakarta.el.ELContextNotify interested listeners that a property has been resolved.- Overrides:
- notifyPropertyResolvedin class- ELContext
- Parameters:
- base- The object on which the property was resolved
- property- The property that was resolved
 
- 
isLambdaArgumentDescription copied from class:jakarta.el.ELContextDetermine if the specified name is recognised as the name of a lambda argument.- Overrides:
- isLambdaArgumentin class- ELContext
- Parameters:
- name- The name of the lambda argument
- Returns:
- trueif the name is recognised as the name of a lambda argument, otherwise- false
 
- 
getLambdaArgumentDescription copied from class:jakarta.el.ELContextObtain the value of the lambda argument with the given name.- Overrides:
- getLambdaArgumentin class- ELContext
- Parameters:
- name- The name of the lambda argument
- Returns:
- The value of the specified argument
 
- 
enterLambdaScopeDescription copied from class:jakarta.el.ELContextCalled when starting to evaluate a lambda expression so that the arguments are available to the EL context during evaluation.- Overrides:
- enterLambdaScopein class- ELContext
- Parameters:
- arguments- The arguments in scope for the current lambda expression.
 
- 
exitLambdaScopepublic void exitLambdaScope()Description copied from class:jakarta.el.ELContextCalled after evaluating a lambda expression to signal that the arguments are no longer required.- Overrides:
- exitLambdaScopein class- ELContext
 
- 
convertToTypeDescription copied from class:jakarta.el.ELContextCoerce the supplied object to the requested type.- Overrides:
- convertToTypein class- ELContext
- Type Parameters:
- T- The type to which the object should be coerced
- Parameters:
- obj- The object to be coerced
- type- The type to which the object should be coerced
- Returns:
- An instance of the requested type.
 
- 
getLambdaExpressionNestedState
- 
setLambdaExpressionNestedState
 
-