Uses of Class
javax.el.ELContext
Packages that use ELContext
Package
Description
Provides the API for the Unified Expression Language shared by
the JSP 2.1 and JSF 1.2 technologies.
-
Uses of ELContext in javax.el
Modifier and TypeFieldDescription(package private) ELContext
CompositeELResolver.CompositeIterator.context
Modifier and TypeMethodDescriptionELContextEvent.getELContext()
Returns theELContext
that was created.Modifier and TypeMethodDescriptionabstract 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.private BeanELResolver.BeanProperty
BeanELResolver.getBeanProperty
(ELContext context, Object base, Object prop) 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
<?> 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
<?> 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.static String
ELUtil.getExceptionMessageString
(ELContext context, String messageId) static String
ELUtil.getExceptionMessageString
(ELContext context, String messageId, Object[] params) ArrayELResolver.getFeatureDescriptors
(ELContext context, Object base) Always returnsnull
, since there is no reason to iterate through set set of all integers.BeanELResolver.getFeatureDescriptors
(ELContext context, Object base) If the base object is notnull
, returns anIterator
containing the set of JavaBeans properties available on the given object.CompositeELResolver.getFeatureDescriptors
(ELContext context, Object base) Returns information about the set of variables or properties that can be resolved for the givenbase
object.abstract Iterator
<FeatureDescriptor> ELResolver.getFeatureDescriptors
(ELContext context, Object base) Returns information about the set of variables or properties that can be resolved for the givenbase
object.ListELResolver.getFeatureDescriptors
(ELContext context, Object base) Always returnsnull
, since there is no reason to iterate through set set of all integers.MapELResolver.getFeatureDescriptors
(ELContext context, Object base) If the base object is a map, returns anIterator
containing the set of keys available in theMap
.ResourceBundleELResolver.getFeatureDescriptors
(ELContext context, Object base) If the base object is a ResourceBundle, returns anIterator
containing the set of keys available in theResourceBundle
.abstract MethodInfo
MethodExpression.getMethodInfo
(ELContext context) Evaluates the expression relative to the provided context, and returns information about the actual referenced method.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
<?> 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(javax.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(javax.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
<?> If the base object is an instance ofResourceBundle
, returnnull
, since the resolver is read only.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(javax.el.ELContext, java.lang.Object)
method.If the base object is a Java language array, returns the value at the given index.If the base object is notnull
, returns the current value of the given property on this bean.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.If the base object is an instance ofResourceBundle
, the provided property will first be coerced to aString
.abstract Object
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 method, 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) Attemps 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) Attemps to resolve and invoke the givenmethod
on the givenbase
object.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.boolean
ArrayELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is a Java language array, returns whether a call toArrayELResolver.setValue(javax.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(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
CompositeELResolver.isReadOnly
(ELContext context, Object base, Object property) For a givenbase
andproperty
, attempts to determine whether a call toCompositeELResolver.setValue(javax.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(javax.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(javax.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(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)
will always fail.boolean
ResourceBundleELResolver.isReadOnly
(ELContext context, Object base, Object property) If the base object is not null and an instanceofResourceBundle
, returntrue
.abstract boolean
ValueExpression.isReadOnly
(ELContext context) Evaluates the expression relative to the provided context, and returnstrue
if a call toValueExpression.setValue(javax.el.ELContext, java.lang.Object)
will always fail.void
If the base object is a Java language array, 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
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
If the base object is a ResourceBundle, throw aPropertyNotWritableException
.abstract void
Evaluates the expression relative to the provided context, and sets the result to the provided value.ModifierConstructorDescription(package private)
CompositeIterator
(Iterator<ELResolver> iter, ELContext context, Object base) ELContextEvent
(ELContext source) Constructs an ELContextEvent object to indicate that anELContext
has been created.