Package com.sun.el.lang
Class EvaluationContext
- java.lang.Object
-
- javax.el.ELContext
-
- com.sun.el.lang.EvaluationContext
-
public final class EvaluationContext extends javax.el.ELContextThe context for EL expression evaluation. This wrapper ELContext captures the function mapper and the variable mapper at the point when the epxression is parsed, and only for those functions and variable used in the expression.
-
-
Constructor Summary
Constructors Constructor Description EvaluationContext(javax.el.ELContext elContext, javax.el.FunctionMapper fnMapper, javax.el.VariableMapper varMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvaluationListener(javax.el.EvaluationListener listener)java.lang.ObjectconvertToType(java.lang.Object obj, java.lang.Class<?> targetType)voidenterLambdaScope(java.util.Map<java.lang.String,java.lang.Object> args)voidexitLambdaScope()java.lang.ObjectgetContext(java.lang.Class key)javax.el.ELContextgetELContext()javax.el.ELResolvergetELResolver()java.util.List<javax.el.EvaluationListener>getEvaluationListeners()javax.el.FunctionMappergetFunctionMapper()javax.el.ImportHandlergetImportHandler()java.lang.ObjectgetLambdaArgument(java.lang.String arg)javax.el.VariableMappergetVariableMapper()booleanisLambdaArgument(java.lang.String arg)booleanisPropertyResolved()voidnotifyAfterEvaluation(java.lang.String expr)voidnotifyBeforeEvaluation(java.lang.String expr)voidnotifyPropertyResolved(java.lang.Object base, java.lang.Object property)voidputContext(java.lang.Class key, java.lang.Object contextObject)voidsetPropertyResolved(boolean resolved)voidsetPropertyResolved(java.lang.Object base, java.lang.Object property)
-
-
-
Method Detail
-
getELContext
public javax.el.ELContext getELContext()
-
getFunctionMapper
public javax.el.FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapperin classjavax.el.ELContext
-
getVariableMapper
public javax.el.VariableMapper getVariableMapper()
- Specified by:
getVariableMapperin classjavax.el.ELContext
-
getContext
public java.lang.Object getContext(java.lang.Class key)
- Overrides:
getContextin classjavax.el.ELContext
-
getELResolver
public javax.el.ELResolver getELResolver()
- Specified by:
getELResolverin classjavax.el.ELContext
-
isPropertyResolved
public boolean isPropertyResolved()
- Overrides:
isPropertyResolvedin classjavax.el.ELContext
-
putContext
public void putContext(java.lang.Class key, java.lang.Object contextObject)- Overrides:
putContextin classjavax.el.ELContext
-
setPropertyResolved
public void setPropertyResolved(boolean resolved)
- Overrides:
setPropertyResolvedin classjavax.el.ELContext
-
setPropertyResolved
public void setPropertyResolved(java.lang.Object base, java.lang.Object property)- Overrides:
setPropertyResolvedin classjavax.el.ELContext
-
addEvaluationListener
public void addEvaluationListener(javax.el.EvaluationListener listener)
- Overrides:
addEvaluationListenerin classjavax.el.ELContext
-
getEvaluationListeners
public java.util.List<javax.el.EvaluationListener> getEvaluationListeners()
- Overrides:
getEvaluationListenersin classjavax.el.ELContext
-
notifyBeforeEvaluation
public void notifyBeforeEvaluation(java.lang.String expr)
- Overrides:
notifyBeforeEvaluationin classjavax.el.ELContext
-
notifyAfterEvaluation
public void notifyAfterEvaluation(java.lang.String expr)
- Overrides:
notifyAfterEvaluationin classjavax.el.ELContext
-
notifyPropertyResolved
public void notifyPropertyResolved(java.lang.Object base, java.lang.Object property)- Overrides:
notifyPropertyResolvedin classjavax.el.ELContext
-
isLambdaArgument
public boolean isLambdaArgument(java.lang.String arg)
- Overrides:
isLambdaArgumentin classjavax.el.ELContext
-
getLambdaArgument
public java.lang.Object getLambdaArgument(java.lang.String arg)
- Overrides:
getLambdaArgumentin classjavax.el.ELContext
-
enterLambdaScope
public void enterLambdaScope(java.util.Map<java.lang.String,java.lang.Object> args)
- Overrides:
enterLambdaScopein classjavax.el.ELContext
-
exitLambdaScope
public void exitLambdaScope()
- Overrides:
exitLambdaScopein classjavax.el.ELContext
-
convertToType
public java.lang.Object convertToType(java.lang.Object obj, java.lang.Class<?> targetType)- Overrides:
convertToTypein classjavax.el.ELContext
-
getImportHandler
public javax.el.ImportHandler getImportHandler()
- Overrides:
getImportHandlerin classjavax.el.ELContext
-
-