Uses of Class
jakarta.el.ELContext
Package
Description
Provides the API for Jakarta Expression Language 6.0
Classes and interfaces related to the core tag library component of the Jakarta Standard Tag Library.
-
Uses of ELContext in com.sun.faces.config
-
Uses of ELContext in com.sun.faces.config.initfacescontext
-
Uses of ELContext in com.sun.faces.context
-
Uses of ELContext in com.sun.faces.context.flash
Modifier and TypeMethodDescriptionClass
<?> FlashELResolver.getCommonPropertyType
(ELContext context, Object base) Ifbase
is non-null
and is the literal string "flash", returnObject.class
.Class
<?> Return the validClass
for a future set operation, which will always benull
because sets happen via theMapELResolver
operating on theELFlash
instance as aMap
.Hook into the EL resolution process to introduce theflash
implicit object.boolean
FlashELResolver.isReadOnly
(ELContext elContext, Object base, Object property) Returnstrue
because write operations take place via theMapELResolver
on the actualELFlash
instance.void
This method will throwPropertyNotWritableException
if called with anull
base
and aproperty
value equal to the literal string "flash". -
Uses of ELContext in com.sun.faces.el
Modifier and TypeMethodDescription<T> T
EmptyStringToNullELResolver.convertToType
(ELContext context, Object value, Class<T> targetType) static Object
ELUtils.evaluateValueExpression
(ValueExpression expression, ELContext elContext) Class
<?> CompositeComponentAttributesELResolver.getCommonPropertyType
(ELContext context, Object base) attrs
is considered aString
property.Class
<?> DemuxCompositeELResolver.getCommonPropertyType
(ELContext context, Object base) Class
<?> EmptyStringToNullELResolver.getCommonPropertyType
(ELContext context, Object base) Class
<?> FacesResourceBundleELResolver.getCommonPropertyType
(ELContext context, Object base) Class
<?> ResourceELResolver.getCommonPropertyType
(ELContext context, Object base) Class
<?> ScopedAttributeELResolver.getCommonPropertyType
(ELContext context, Object base) Class
<?> Class
<?> Readonly, so returnnull
.Class
<?> Class
<?> Class
<?> Class
<?> Class
<?> Ifbase
is a composite component andproperty
isattrs
, return a newExpressionEvalMap
which wraps the composite component's attributes map.If base and property are notnull
and base is an instance ofResourceHandler
, perform the following: Ifproperty
doesn't contain:
treatproperty
as the resource name and passproperty
toResourceHandler.createResource(String)
Ifproperty
contains a single:
treat the content before the:
as the library name, and the content after the:
to be the resource name and pass both toResourceHandler.createResource(String, String)
Ifproperty
contains more than one:
then throw aELException
If one of the above steps resulted in the creation of aResource
instance, callELContext.setPropertyResolved(true)
and return the result ofResource.getRequestPath()
boolean
ChainTypeCompositeELResolver.isReadOnly
(ELContext context, Object base, Object property) boolean
CompositeComponentAttributesELResolver.isReadOnly
(ELContext context, Object base, Object property) Readonly, so returntrue
boolean
DemuxCompositeELResolver.isReadOnly
(ELContext context, Object base, Object property) boolean
EmptyStringToNullELResolver.isReadOnly
(ELContext context, Object base, Object property) boolean
FacesResourceBundleELResolver.isReadOnly
(ELContext context, Object base, Object property) boolean
ResourceELResolver.isReadOnly
(ELContext context, Object base, Object property) boolean
ScopedAttributeELResolver.isReadOnly
(ELContext context, Object base, Object property) void
void
CompositeComponentAttributesELResolver.setValue
(ELContext context, Object base, Object property, Object value) This is a no-op.void
void
void
void
This is basically a no-op.void
-
Uses of ELContext in com.sun.faces.facelets
-
Uses of ELContext in com.sun.faces.facelets.compiler
Modifier and TypeMethodDescriptioncom.sun.faces.facelets.compiler.Instruction
XMLInstruction.apply
(ExpressionFactory factory, ELContext ctx) -
Uses of ELContext in com.sun.faces.facelets.el
Modifier and TypeMethodDescriptionELText.apply
(ExpressionFactory factory, ELContext ctx) Return an instance ofthis
that is applicable given the ELContext and ExpressionFactory state.ContextualCompositeMethodExpression.getMethodInfo
(ELContext elContext) TagMethodExpression.getMethodInfo
(ELContext context) Class
<?> Class
<?> ContextualCompositeValueExpression.getValueReference
(ELContext elContext) TagValueExpression.getValueReference
(ELContext context) boolean
ContextualCompositeValueExpression.isReadOnly
(ELContext elContext) boolean
TagValueExpression.isReadOnly
(ELContext context) static ELText
ELText.parse
(ExpressionFactory fact, ELContext ctx, String in) static ELText
ELText.parse
(ExpressionFactory fact, ELContext ctx, String in, String alias) Factory method for creating a validated ELText instance.void
void
Evaluates the ELText to a Stringvoid
Allow this instance to write to the passed Writer, given the ELContext statevoid
ELText.writeText
(ResponseWriter out, ELContext ctx) -
Uses of ELContext in com.sun.faces.facelets.tag.jstl.core
Modifier and TypeMethodDescriptionboolean
IndexedValueExpression.isReadOnly
(ELContext context) boolean
IteratedValueExpression.isReadOnly
(ELContext context) boolean
IterationStatusExpression.isReadOnly
(ELContext context) boolean
MappedValueExpression.isReadOnly
(ELContext context) void
void
void
void
-
Uses of ELContext in jakarta.el
Modifier and TypeClassDescriptionclass
A standard ELContext suitable for use in a stand alone environment.Modifier and TypeMethodDescriptionELContextEvent.getELContext()
Returns theELContext
that was created.ELManager.setELContext
(ELContext context) Set the ELContext used for parsing and evaluating Jakarta Expression Language expressions.Modifier and TypeMethodDescriptionvoid
EvaluationListener.afterEvaluation
(ELContext context, String expression) Receives notification after a Jakarta Expression Language expression is evaluatedvoid
EvaluationListener.beforeEvaluation
(ELContext context, String expression) Receives notification before a Jakarta Expression Language expression is evaluated<T> T
CompositeELResolver.convertToType
(ELContext context, Object obj, Class<T> targetType) Converts an object to a specific type.<T> T
ELResolver.convertToType
(ELContext context, Object obj, Class<T> targetType) Converts an object to a specific type.<T> T
OptionalELResolver.convertToType
(ELContext context, Object obj, Class<T> type) Converts an object to a specific type.abstract <T> T
TypeConverter.convertToType
(ELContext context, Object obj, Class<T> targetType) Converts an object to a specific type.abstract MethodExpression
ExpressionFactory.createMethodExpression
(ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes) Parses an expression into aMethodExpression
for later evaluation.abstract ValueExpression
ExpressionFactory.createValueExpression
(ELContext context, String expression, Class<?> expectedType) Parses an expression into aValueExpression
for later evaluation.Class
<?> ArrayELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object is a Java language array, returns the most general type that this resolver accepts for theproperty
argument.Class
<?> BeanELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object is notnull
, returns the most general type that this resolver accepts for theproperty
argument.Class
<?> BeanNameELResolver.getCommonPropertyType
(ELContext context, Object base) Always returnsString.class
, since a bean name is a String.Class
<?> CompositeELResolver.getCommonPropertyType
(ELContext context, Object base) Returns the most general type that this resolver accepts for theproperty
argument, given abase
object.abstract Class
<?> ELResolver.getCommonPropertyType
(ELContext context, Object base) Returns the most general type that this resolver accepts for theproperty
argument, given abase
object.Class
<?> ListELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object is a list, returns the most general type that this resolver accepts for theproperty
argument.Class
<?> MapELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object is a map, returns the most general type that this resolver accepts for theproperty
argument.Class
<?> OptionalELResolver.getCommonPropertyType
(ELContext context, Object base) Returns the most general type that this resolver accepts for theproperty
argument, given abase
object.Class
<?> RecordELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object is an instance ofRecord
, returns the most general type this resolver accepts for theproperty
argument.Class
<?> ResourceBundleELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object is a ResourceBundle, returns the most general type that this resolver accepts for theproperty
argument.Class
<?> StaticFieldELResolver.getCommonPropertyType
(ELContext context, Object base) Returns the type of the property.Class
<?> TypeConverter.getCommonPropertyType
(ELContext context, Object base) abstract MethodInfo
MethodExpression.getMethodInfo
(ELContext context) Evaluates the expression relative to the provided context, and returns information about the actual referenced method.MethodExpression.getMethodReference
(ELContext context) Obtain theMethodReference
for the method to which this method expression resolves.Class
<?> If the base object is an array, returns the most general acceptable type for a value in this array.Class
<?> If the base object is notnull
, returns the most general acceptable type that can be set on this bean property.Class
<?> If the base is null and the property is a name resolvable by the BeanNameResolver, return the type of the bean.Class
<?> For a givenbase
andproperty
, attempts to identify the most general type that is acceptable for an object to be passed as thevalue
parameter in a future call to theCompositeELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
method.abstract Class
<?> For a givenbase
andproperty
, attempts to identify the most general type that is acceptable for an object to be passed as thevalue
parameter in a future call to theELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
method.Class
<?> If the base object is a list, returns the most general acceptable type for a value in this list.Class
<?> If the base object is a map, returns the most general acceptable type for a value in this map.Class
<?> For a givenbase
andproperty
, attempts to identify the most general type that is acceptable for an object to be passed as thevalue
parameter in a future call to theELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
method.Class
<?> Class
<?> If the base object is an instance ofResourceBundle
, returnnull
, since the resolver is read only.Class
<?> Returns the type of a static field.Class
<?> abstract Class
<?> Evaluates the expression relative to the provided context, and returns the most general type that is acceptable for an object to be passed as thevalue
parameter in a future call to theValueExpression.setValue(jakarta.el.ELContext, java.lang.Object)
method.If the base object is a Java language array, returns the length of the array or the value at the given index.If the base object is notnull
, returns the current value of the given property on this bean.If the base object isnull
and the property is a name that is resolvable by the BeanNameResolver, returns the value resolved by the BeanNameResolver.Attempts to resolve the givenproperty
object on the givenbase
object by querying all component resolvers.abstract Object
Attempts to resolve the givenproperty
object on the givenbase
object.If the base object is a list, returns the value at the given index.If the base object is a map, returns the value associated with the given key, as specified by theproperty
argument.Attempts to resolve the givenproperty
object on the givenbase
object.If the base object is an instance ofResourceBundle
, the provided property will first be coerced to aString
.Returns the value of a static field.abstract <T> T
Evaluates the expression relative to the provided context, and returns the resulting value.ValueExpression.getValueReference
(ELContext context) Returns aValueReference
for this expression instance.BeanELResolver.invoke
(ELContext context, Object base, Object methodName, Class<?>[] paramTypes, Object[] params) If the base object is notnull
, invoke the method, with the given parameters on this bean.CompositeELResolver.invoke
(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) Attempts to resolve and invoke the givenmethod
on the givenbase
object by querying all component resolvers.ELResolver.invoke
(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) Attempts to resolve and invoke the givenmethod
on the givenbase
object.Invoke the encapsulated Lambda expression.abstract Object
If a String literal is specified as the expression, returns the String literal coerced to the expected return type of the method signature.OptionalELResolver.invoke
(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) Attempts to resolve and invoke the givenmethod
on the givenbase
object.StaticFieldELResolver.invoke
(ELContext context, Object base, Object methodName, Class<?>[] paramTypes, Object[] params) Invokes a public static method or the constructor for a class.boolean
ArrayELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is a Java language array, returns whether a call toArrayELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
BeanELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is notnull
, returns whether a call toBeanELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
BeanNameELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base is null and the property is a name resolvable by the BeanNameResolver, attempts to determine if the bean is writable.boolean
CompositeELResolver.isReadOnly
(ELContext context, Object base, Object property) For a givenbase
andproperty
, attempts to determine whether a call toCompositeELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.abstract boolean
ELResolver.isReadOnly
(ELContext context, Object base, Object property) For a givenbase
andproperty
, attempts to determine whether a call toELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
ListELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is a list, returns whether a call toListELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
MapELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is a map, returns whether a call toMapELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
OptionalELResolver.isReadOnly
(ELContext context, Object base, Object property) For a givenbase
andproperty
, attempts to determine whether a call toELResolver.setValue(jakarta.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
RecordELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is an instance ofRecord
, always returnstrue
.boolean
ResourceBundleELResolver.isReadOnly
(ELContext context, Object base, Object property) boolean
StaticFieldELResolver.isReadOnly
(ELContext context, Object base, Object property) Inquires whether the static field is writable.boolean
TypeConverter.isReadOnly
(ELContext context, Object base, Object property) abstract boolean
ValueExpression.isReadOnly
(ELContext context) Evaluates the expression relative to the provided context, and returnstrue
if a call toValueExpression.setValue(jakarta.el.ELContext, java.lang.Object)
will always fail.void
EvaluationListener.propertyResolved
(ELContext context, Object base, Object property) Receives notification when the (base, property) pair is resolvedELManager.setELContext
(ELContext context) Set the ELContext used for parsing and evaluating Jakarta Expression Language expressions.void
LambdaExpression.setELContext
(ELContext context) Set the ELContext to use in evaluating the LambdaExpression.void
If the base object is a Java language array and the property is not the case sensitive stringlength
, attempts to set the value at the given index with the given value.void
If the base object is notnull
, attempts to set the value of the given property on this bean.void
If the base is null and the property is a name that is resolvable by the BeanNameResolver, the bean in the BeanNameResolver is set to the given value.void
Attempts to set the value of the givenproperty
object on the givenbase
object.abstract void
Attempts to set the value of the givenproperty
object on the givenbase
object.void
If the base object is a list, attempts to set the value at the given index with the given value.void
If the base object is a map, attempts to set the value associated with the given key, as specified by theproperty
argument.void
Attempts to set the value of the givenproperty
object on the givenbase
object.void
void
If the base object is a ResourceBundle, throw aPropertyNotWritableException
.void
Attempts to write to a static field.void
abstract void
Evaluates the expression relative to the provided context, and sets the result to the provided value.ModifierConstructorDescriptionELContextEvent
(ELContext source) Constructs an ELContextEvent object to indicate that anELContext
has been created.StandardELContext
(ELContext context) Construct a StandardELContext from another ELContext. -
Uses of ELContext in jakarta.faces.context
Modifier and TypeMethodDescriptionFacesContext.getELContext()
Return theELContext
instance for thisFacesContext
instance.FacesContextWrapper.getELContext()
The default behavior of this method is to callFacesContext.getELContext()
on the wrappedFacesContext
object. -
Uses of ELContext in jakarta.faces.view.facelets
Modifier and TypeClassDescriptionclass
Context representative of a single request from a Facelet. -
Uses of ELContext in jakarta.servlet.jsp
Modifier and TypeMethodDescriptionabstract ELContext
JspContext.getELContext()
Returns theELContext
associated with thisJspContext
. -
Uses of ELContext in jakarta.servlet.jsp.el
Modifier and TypeMethodDescriptionImplicitObjectELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object isnull
, returnsString.class
.ImportELResolver.getCommonPropertyType
(ELContext context, Object base) Always returnsnull
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.getCommonPropertyType(ELContext, Object)
.NotFoundELResolver.getCommonPropertyType
(ELContext context, Object base) Always returnsnull
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.getCommonPropertyType(ELContext, Object)
.ScopedAttributeELResolver.getCommonPropertyType
(ELContext context, Object base) If the base object isnull
, returnsString.class
.Class
<?> If the base object isnull
, and the property matches the name of a JSP implicit object, returnsnull
to indicate that no types are ever accepted tosetValue()
.Always returnsnull
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.getType(ELContext, Object, Object)
.Always returnsnull
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.getType(ELContext, Object, Object)
.If the base object isnull
, returnsObject.class
to indicate that any type is valid to set for a scoped attribute.If the base object isnull
, and the property matches the name of a JSP implicit object, returns the implicit object.If the base object isnull
, searches the Class and static imports for an import with the given name and returns it if an import exists with the given name.Always returnsnull
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.getValue(ELContext, Object, Object)
.If the base object isnull
, searches the page, request, session and application scopes for an attribute with the given name and returns it if an attribute exists with the current name.boolean
ImplicitObjectELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object isnull
, and the property matches the name of a JSP implicit object, returnstrue
to indicate that implicit objects cannot be overwritten.boolean
ImportELResolver.isReadOnly
(ELContext context, Object base, Object property) Always returnsfalse
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.isReadOnly(ELContext, Object, Object)
.boolean
NotFoundELResolver.isReadOnly
(ELContext context, Object base, Object property) Always returnsfalse
since in normal usageScopedAttributeELResolver
will handle calls toELResolver.isReadOnly(ELContext, Object, Object)
.boolean
ScopedAttributeELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object isnull
, returnsfalse
to indicate that scoped attributes are never read-only.void
If the base object isnull
, and the property matches the name of a JSP implicit object, throwsPropertyNotWritableException
to indicate that implicit objects cannot be overwritten.void
Always a NO-OP since in normal usageScopedAttributeELResolver
will handle calls toELResolver.setValue(ELContext, Object, Object, Object)
.void
Always a NO-OP since in normal usageScopedAttributeELResolver
will handle calls toELResolver.setValue(ELContext, Object, Object, Object)
.void
If the base object isnull
, sets an existing scoped attribute to the new value, or creates a new scoped attribute if one does not exist by this name. -
Uses of ELContext in jakarta.servlet.jsp.jstl.core
Modifier and TypeMethodDescriptionEvaluates the stored ValueExpression and return the indexed item.boolean
IndexedValueExpression.isReadOnly
(ELContext context) boolean
IteratedValueExpression.isReadOnly
(ELContext context) void
void