Package org.apache.jasper.el
Class ELContextWrapper
- java.lang.Object
-
- jakarta.el.ELContext
-
- org.apache.jasper.el.ELContextWrapper
-
public final class ELContextWrapper extends ELContext
Simple ELContextWrapper for runtime evaluation of EL w/ dynamic FunctionMappers- Author:
- jhook
-
-
Constructor Summary
Constructors Constructor Description ELContextWrapper(ELContext target, FunctionMapper fnMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContext(java.lang.Class<?> key)
Obtain the context object for the given key.ELResolver
getELResolver()
FunctionMapper
getFunctionMapper()
java.util.Locale
getLocale()
VariableMapper
getVariableMapper()
boolean
isPropertyResolved()
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)
-
Methods inherited from class jakarta.el.ELContext
addEvaluationListener, convertToType, enterLambdaScope, exitLambdaScope, getEvaluationListeners, getImportHandler, getLambdaArgument, isLambdaArgument, notifyAfterEvaluation, notifyBeforeEvaluation, notifyPropertyResolved, setPropertyResolved
-
-
-
-
Constructor Detail
-
ELContextWrapper
public ELContextWrapper(ELContext target, FunctionMapper fnMapper)
-
-
Method Detail
-
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolver
in classELContext
-
getFunctionMapper
public FunctionMapper getFunctionMapper()
- Specified by:
getFunctionMapper
in classELContext
-
getVariableMapper
public VariableMapper getVariableMapper()
- Specified by:
getVariableMapper
in classELContext
-
getContext
public java.lang.Object getContext(java.lang.Class<?> key)
Description copied from class:jakarta.el.ELContext
Obtain the context object for the given key.- Overrides:
getContext
in classELContext
- Parameters:
key
- The key of the required context object- Returns:
- The value of the context object associated with the given key
-
isPropertyResolved
public boolean isPropertyResolved()
- Overrides:
isPropertyResolved
in classELContext
-
putContext
public void putContext(java.lang.Class<?> key, java.lang.Object contextObject) throws java.lang.NullPointerException
Description copied from class:jakarta.el.ELContext
Add an object to this EL context under the given key.- Overrides:
putContext
in classELContext
- Parameters:
key
- The key under which to store the objectcontextObject
- The object to add- Throws:
java.lang.NullPointerException
- If the supplied key or context isnull
-
setPropertyResolved
public void setPropertyResolved(boolean resolved)
- Overrides:
setPropertyResolved
in classELContext
-
-