public final class EvaluationContext
extends javax.el.ELContext
| Constructor | Description |
|---|---|
EvaluationContext(javax.el.ELContext elContext,
javax.el.FunctionMapper fnMapper,
javax.el.VariableMapper varMapper) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addEvaluationListener(javax.el.EvaluationListener listener) |
Register an EvaluationListener with this ELContext.
|
java.lang.Object |
convertToType(java.lang.Object obj,
java.lang.Class<?> type) |
Coerce the supplied object to the requested type.
|
void |
enterLambdaScope(java.util.Map<java.lang.String,java.lang.Object> arguments) |
Called when starting to evaluate a lambda expression so that the
arguments are available to the EL context during evaluation.
|
void |
exitLambdaScope() |
Called after evaluating a lambda expression to signal that the arguments
are no longer required.
|
java.lang.Object |
getContext(java.lang.Class key) |
Obtain the context object for the given key.
|
javax.el.ELContext |
getELContext() |
|
javax.el.ELResolver |
getELResolver() |
|
java.util.List<javax.el.EvaluationListener> |
getEvaluationListeners() |
Obtain the list of registered EvaluationListeners.
|
javax.el.FunctionMapper |
getFunctionMapper() |
|
javax.el.ImportHandler |
getImportHandler() |
Obtain the ImportHandler for this ELContext, creating one if necessary.
|
java.lang.Object |
getLambdaArgument(java.lang.String name) |
Obtain the value of the lambda argument with the given name.
|
java.util.Locale |
getLocale() |
|
javax.el.VariableMapper |
getVariableMapper() |
|
boolean |
isLambdaArgument(java.lang.String name) |
Determine if the specified name is recognised as the name of a lambda
argument.
|
boolean |
isPropertyResolved() |
|
void |
notifyAfterEvaluation(java.lang.String expression) |
Notify interested listeners that an expression has been evaluated.
|
void |
notifyBeforeEvaluation(java.lang.String expression) |
Notify interested listeners that an expression will be evaluated.
|
void |
notifyPropertyResolved(java.lang.Object base,
java.lang.Object property) |
Notify interested listeners that a property has been resolved.
|
void |
putContext(java.lang.Class key,
java.lang.Object contextObject) |
Add an object to this EL context under the given key.
|
void |
setLocale(java.util.Locale locale) |
|
void |
setPropertyResolved(boolean resolved) |
|
void |
setPropertyResolved(java.lang.Object base,
java.lang.Object property) |
Mark the given property as resolved and notfy any interested listeners.
|
public EvaluationContext(javax.el.ELContext elContext,
javax.el.FunctionMapper fnMapper,
javax.el.VariableMapper varMapper)
public javax.el.ELContext getELContext()
public javax.el.FunctionMapper getFunctionMapper()
getFunctionMapper in class javax.el.ELContextpublic javax.el.VariableMapper getVariableMapper()
getVariableMapper in class javax.el.ELContextpublic java.lang.Object getContext(java.lang.Class key)
javax.el.ELContextgetContext in class javax.el.ELContextkey - The key of the required context objectpublic javax.el.ELResolver getELResolver()
getELResolver in class javax.el.ELContextpublic boolean isPropertyResolved()
isPropertyResolved in class javax.el.ELContextpublic void putContext(java.lang.Class key,
java.lang.Object contextObject)
javax.el.ELContextputContext in class javax.el.ELContextkey - The key under which to store the objectcontextObject - The object to addpublic void setPropertyResolved(boolean resolved)
setPropertyResolved in class javax.el.ELContextpublic java.util.Locale getLocale()
getLocale in class javax.el.ELContextpublic void setLocale(java.util.Locale locale)
setLocale in class javax.el.ELContextpublic void setPropertyResolved(java.lang.Object base,
java.lang.Object property)
javax.el.ELContextsetPropertyResolved in class javax.el.ELContextbase - The base object on which the property was foundproperty - The property that was resolvedpublic javax.el.ImportHandler getImportHandler()
javax.el.ELContextgetImportHandler in class javax.el.ELContextpublic void addEvaluationListener(javax.el.EvaluationListener listener)
javax.el.ELContextaddEvaluationListener in class javax.el.ELContextlistener - The EvaluationListener to registerpublic java.util.List<javax.el.EvaluationListener> getEvaluationListeners()
javax.el.ELContextgetEvaluationListeners in class javax.el.ELContextpublic void notifyBeforeEvaluation(java.lang.String expression)
javax.el.ELContextnotifyBeforeEvaluation in class javax.el.ELContextexpression - The expression that will be evaluatedpublic void notifyAfterEvaluation(java.lang.String expression)
javax.el.ELContextnotifyAfterEvaluation in class javax.el.ELContextexpression - The expression that was evaluatedpublic void notifyPropertyResolved(java.lang.Object base,
java.lang.Object property)
javax.el.ELContextnotifyPropertyResolved in class javax.el.ELContextbase - The object on which the property was resolvedproperty - The property that was resolvedpublic boolean isLambdaArgument(java.lang.String name)
javax.el.ELContextisLambdaArgument in class javax.el.ELContextname - The name of the lambda argumenttrue if the name is recognised as the name of a
lambda argument, otherwise falsepublic java.lang.Object getLambdaArgument(java.lang.String name)
javax.el.ELContextgetLambdaArgument in class javax.el.ELContextname - The name of the lambda argumentpublic void enterLambdaScope(java.util.Map<java.lang.String,java.lang.Object> arguments)
javax.el.ELContextenterLambdaScope in class javax.el.ELContextarguments - The arguments in scope for the current lambda
expression.public void exitLambdaScope()
javax.el.ELContextexitLambdaScope in class javax.el.ELContextpublic java.lang.Object convertToType(java.lang.Object obj,
java.lang.Class<?> type)
javax.el.ELContextconvertToType in class javax.el.ELContextobj - The object to be coercedtype - The type to which the object should be coercedCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.