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.ELContext
The 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 void
addEvaluationListener(javax.el.EvaluationListener listener)
java.lang.Object
convertToType(java.lang.Object obj, java.lang.Class<?> targetType)
void
enterLambdaScope(java.util.Map<java.lang.String,java.lang.Object> args)
void
exitLambdaScope()
java.lang.Object
getContext(java.lang.Class key)
javax.el.ELContext
getELContext()
javax.el.ELResolver
getELResolver()
java.util.List<javax.el.EvaluationListener>
getEvaluationListeners()
javax.el.FunctionMapper
getFunctionMapper()
javax.el.ImportHandler
getImportHandler()
java.lang.Object
getLambdaArgument(java.lang.String arg)
javax.el.VariableMapper
getVariableMapper()
boolean
isLambdaArgument(java.lang.String arg)
boolean
isPropertyResolved()
void
notifyAfterEvaluation(java.lang.String expr)
void
notifyBeforeEvaluation(java.lang.String expr)
void
notifyPropertyResolved(java.lang.Object base, java.lang.Object property)
void
putContext(java.lang.Class key, java.lang.Object contextObject)
void
setPropertyResolved(boolean resolved)
void
setPropertyResolved(java.lang.Object base, java.lang.Object property)
-
-
-
Method Detail
-
getELContext
public javax.el.ELContext getELContext()
-
getFunctionMapper
public javax.el.FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapper
in classjavax.el.ELContext
-
getVariableMapper
public javax.el.VariableMapper getVariableMapper()
- Specified by:
getVariableMapper
in classjavax.el.ELContext
-
getContext
public java.lang.Object getContext(java.lang.Class key)
- Overrides:
getContext
in classjavax.el.ELContext
-
getELResolver
public javax.el.ELResolver getELResolver()
- Specified by:
getELResolver
in classjavax.el.ELContext
-
isPropertyResolved
public boolean isPropertyResolved()
- Overrides:
isPropertyResolved
in classjavax.el.ELContext
-
putContext
public void putContext(java.lang.Class key, java.lang.Object contextObject)
- Overrides:
putContext
in classjavax.el.ELContext
-
setPropertyResolved
public void setPropertyResolved(boolean resolved)
- Overrides:
setPropertyResolved
in classjavax.el.ELContext
-
setPropertyResolved
public void setPropertyResolved(java.lang.Object base, java.lang.Object property)
- Overrides:
setPropertyResolved
in classjavax.el.ELContext
-
addEvaluationListener
public void addEvaluationListener(javax.el.EvaluationListener listener)
- Overrides:
addEvaluationListener
in classjavax.el.ELContext
-
getEvaluationListeners
public java.util.List<javax.el.EvaluationListener> getEvaluationListeners()
- Overrides:
getEvaluationListeners
in classjavax.el.ELContext
-
notifyBeforeEvaluation
public void notifyBeforeEvaluation(java.lang.String expr)
- Overrides:
notifyBeforeEvaluation
in classjavax.el.ELContext
-
notifyAfterEvaluation
public void notifyAfterEvaluation(java.lang.String expr)
- Overrides:
notifyAfterEvaluation
in classjavax.el.ELContext
-
notifyPropertyResolved
public void notifyPropertyResolved(java.lang.Object base, java.lang.Object property)
- Overrides:
notifyPropertyResolved
in classjavax.el.ELContext
-
isLambdaArgument
public boolean isLambdaArgument(java.lang.String arg)
- Overrides:
isLambdaArgument
in classjavax.el.ELContext
-
getLambdaArgument
public java.lang.Object getLambdaArgument(java.lang.String arg)
- Overrides:
getLambdaArgument
in classjavax.el.ELContext
-
enterLambdaScope
public void enterLambdaScope(java.util.Map<java.lang.String,java.lang.Object> args)
- Overrides:
enterLambdaScope
in classjavax.el.ELContext
-
exitLambdaScope
public void exitLambdaScope()
- Overrides:
exitLambdaScope
in classjavax.el.ELContext
-
convertToType
public java.lang.Object convertToType(java.lang.Object obj, java.lang.Class<?> targetType)
- Overrides:
convertToType
in classjavax.el.ELContext
-
getImportHandler
public javax.el.ImportHandler getImportHandler()
- Overrides:
getImportHandler
in classjavax.el.ELContext
-
-