|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||
| 使用 ELContext 的软件包 | |
|---|---|
| com.sun.el | |
| com.sun.el.lang | |
| javax.el | Provides the API for the Unified Expression Language 2.2 used by the JSP 2.2 and JSF 2.0 technologies. |
| javax.servlet.jsp | Classes and interfaces for the Core JSP 2.1 API. |
| javax.servlet.jsp.el | Provides the ELResolver classes that define the
object resolution rules that must be supported by a JSP container
with the new unified Expression Language. |
| org.apache.jasper.runtime | |
| com.sun.el 中 ELContext 的使用 |
|---|
| 参数类型为 ELContext 的 com.sun.el 中的方法 | |
|---|---|
MethodExpression |
ExpressionFactoryImpl.createMethodExpression(ELContext context,
String expression,
Class expectedReturnType,
Class[] expectedParamTypes)
|
ValueExpression |
ExpressionFactoryImpl.createValueExpression(ELContext context,
String expression,
Class expectedType)
|
MethodInfo |
MethodExpressionLiteral.getMethodInfo(ELContext context)
|
MethodInfo |
MethodExpressionImpl.getMethodInfo(ELContext context)
Evaluates the expression relative to the provided context, and returns information about the actual referenced method. |
Class |
ValueExpressionLiteral.getType(ELContext context)
|
Class |
ValueExpressionImpl.getType(ELContext context)
|
Object |
ValueExpressionLiteral.getValue(ELContext context)
|
Object |
ValueExpressionImpl.getValue(ELContext context)
|
ValueReference |
ValueExpressionImpl.getValueReference(ELContext context)
|
Object |
MethodExpressionLiteral.invoke(ELContext context,
Object[] params)
|
Object |
MethodExpressionImpl.invoke(ELContext context,
Object[] params)
Evaluates the expression relative to the provided context, invokes the method that was found using the supplied parameters, and returns the result of the method invocation. |
boolean |
ValueExpressionLiteral.isReadOnly(ELContext context)
|
boolean |
ValueExpressionImpl.isReadOnly(ELContext context)
|
void |
ValueExpressionLiteral.setValue(ELContext context,
Object value)
|
void |
ValueExpressionImpl.setValue(ELContext context,
Object value)
|
| com.sun.el.lang 中 ELContext 的使用 |
|---|
| com.sun.el.lang 中 ELContext 的子类 | |
|---|---|
class |
EvaluationContext
|
| 返回 ELContext 的 com.sun.el.lang 中的方法 | |
|---|---|
ELContext |
EvaluationContext.getELContext()
|
| 参数类型为 ELContext 的 com.sun.el.lang 中的构造方法 | |
|---|---|
EvaluationContext(ELContext elContext,
FunctionMapper fnMapper,
VariableMapper varMapper)
|
|
ExpressionBuilder(String expression,
ELContext ctx)
|
|
| javax.el 中 ELContext 的使用 |
|---|
| 返回 ELContext 的 javax.el 中的方法 | |
|---|---|
ELContext |
ELContextEvent.getELContext()
Returns the ELContext that was created. |
| 参数类型为 ELContext 的 javax.el 中的方法 | |
|---|---|
abstract MethodExpression |
ExpressionFactory.createMethodExpression(ELContext context,
String expression,
Class<?> expectedReturnType,
Class<?>[] expectedParamTypes)
Parses an expression into a MethodExpression for later
evaluation. |
abstract ValueExpression |
ExpressionFactory.createValueExpression(ELContext context,
String expression,
Class<?> expectedType)
Parses an expression into a ValueExpression for later
evaluation. |
Class<?> |
ResourceBundleELResolver.getCommonPropertyType(ELContext context,
Object base)
If the base object is a ResourceBundle, returns the most general type that this resolver accepts for the property 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 the property argument. |
Class<?> |
ListELResolver.getCommonPropertyType(ELContext context,
Object base)
If the base object is a list, returns the most general type that this resolver accepts for the property argument. |
abstract Class<?> |
ELResolver.getCommonPropertyType(ELContext context,
Object base)
Returns the most general type that this resolver accepts for the property argument, given a base object. |
Class<?> |
CompositeELResolver.getCommonPropertyType(ELContext context,
Object base)
Returns the most general type that this resolver accepts for the property argument, given a base object. |
Class<?> |
BeanELResolver.getCommonPropertyType(ELContext context,
Object base)
If the base object is not null, returns the most
general type that this resolver accepts for the
property argument. |
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 the property argument. |
Iterator |
ResourceBundleELResolver.getFeatureDescriptors(ELContext context,
Object base)
If the base object is a ResourceBundle, returns an Iterator
containing the set of keys available in the ResourceBundle. |
Iterator<FeatureDescriptor> |
MapELResolver.getFeatureDescriptors(ELContext context,
Object base)
If the base object is a map, returns an Iterator
containing the set of keys available in the Map. |
Iterator<FeatureDescriptor> |
ListELResolver.getFeatureDescriptors(ELContext context,
Object base)
Always returns null, since there is no reason to
iterate through set set of all integers. |
abstract Iterator<FeatureDescriptor> |
ELResolver.getFeatureDescriptors(ELContext context,
Object base)
Returns information about the set of variables or properties that can be resolved for the given base object. |
Iterator<FeatureDescriptor> |
CompositeELResolver.getFeatureDescriptors(ELContext context,
Object base)
Returns information about the set of variables or properties that can be resolved for the given base object. |
Iterator<FeatureDescriptor> |
BeanELResolver.getFeatureDescriptors(ELContext context,
Object base)
If the base object is not null, returns an
Iterator containing the set of JavaBeans properties
available on the given object. |
Iterator<FeatureDescriptor> |
ArrayELResolver.getFeatureDescriptors(ELContext context,
Object base)
Always returns null, since there is no reason to
iterate through set set of all integers. |
abstract MethodInfo |
MethodExpression.getMethodInfo(ELContext context)
Evaluates the expression relative to the provided context, and returns information about the actual referenced method. |
abstract Class<?> |
ValueExpression.getType(ELContext context)
Evaluates the expression relative to the provided context, and returns the most general type that is acceptable for an object to be passed as the value parameter in a future call
to the ValueExpression.setValue(javax.el.ELContext, java.lang.Object) method. |
Class<?> |
ResourceBundleELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is an instance of ResourceBundle,
return null, since the resolver is read only. |
Class<?> |
MapELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is a map, returns the most general acceptable type for a value in this map. |
Class<?> |
ListELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is a list, returns the most general acceptable type for a value in this list. |
abstract Class<?> |
ELResolver.getType(ELContext context,
Object base,
Object property)
For a given base and property, attempts to
identify the most general type that is acceptable for an object to be
passed as the value parameter in a future call
to the ELResolver.setValue(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) method. |
Class<?> |
CompositeELResolver.getType(ELContext context,
Object base,
Object property)
For a given base and property, attempts to
identify the most general type that is acceptable for an object to be
passed as the value parameter in a future call
to the CompositeELResolver.setValue(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) method. |
Class<?> |
BeanELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is not null, returns the most
general acceptable type that can be set on this bean property. |
Class<?> |
ArrayELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is an array, returns the most general acceptable type for a value in this array. |
abstract Object |
ValueExpression.getValue(ELContext context)
Evaluates the expression relative to the provided context, and returns the resulting value. |
Object |
ResourceBundleELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is an instance of ResourceBundle,
the provided property will first be coerced to a String. |
Object |
MapELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is a map, returns the value associated with the given key, as specified by the property argument. |
Object |
ListELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is a list, returns the value at the given index. |
abstract Object |
ELResolver.getValue(ELContext context,
Object base,
Object property)
Attempts to resolve the given property object on the given
base object. |
Object |
CompositeELResolver.getValue(ELContext context,
Object base,
Object property)
Attempts to resolve the given property object on the given
base object by querying all component resolvers. |
Object |
BeanELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is not null, returns the current
value of the given property on this bean. |
Object |
ArrayELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is a Java language array, returns the value at the given index. |
ValueReference |
ValueExpression.getValueReference(ELContext context)
Returns a ValueReference for this expression instance. |
abstract Object |
MethodExpression.invoke(ELContext context,
Object[] params)
If a String literal is specified as the expression, returns the String literal coerced to the expected return type of the method signature. |
Object |
ELResolver.invoke(ELContext context,
Object base,
Object method,
Class<?>[] paramTypes,
Object[] params)
Attemps to resolve and invoke the given method on the given
base object. |
Object |
CompositeELResolver.invoke(ELContext context,
Object base,
Object method,
Class<?>[] paramTypes,
Object[] params)
Attemps to resolve and invoke the given method on the given
base object by querying all component resolvers. |
Object |
BeanELResolver.invoke(ELContext context,
Object base,
Object method,
Class<?>[] paramTypes,
Object[] params)
If the base object is not null, invoke the method, with
the given parameters on this bean. |
abstract boolean |
ValueExpression.isReadOnly(ELContext context)
Evaluates the expression relative to the provided context, and returns true if a call to ValueExpression.setValue(javax.el.ELContext, java.lang.Object) will
always fail. |
boolean |
ResourceBundleELResolver.isReadOnly(ELContext context,
Object base,
Object property)
If the base object is not null and an instanceof ResourceBundle,
return true. |
boolean |
MapELResolver.isReadOnly(ELContext context,
Object base,
Object property)
If the base object is a map, returns whether a call to MapELResolver.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 to ListELResolver.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 given base and property, attempts to
determine whether a call to ELResolver.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 given base and property, attempts to
determine whether a call to CompositeELResolver.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 not null, returns whether a call
to BeanELResolver.setValue(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) will always fail. |
boolean |
ArrayELResolver.isReadOnly(ELContext context,
Object base,
Object property)
If the base object is a Java language array, returns whether a call to ArrayELResolver.setValue(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object) will always fail. |
abstract void |
ValueExpression.setValue(ELContext context,
Object value)
Evaluates the expression relative to the provided context, and sets the result to the provided value. |
void |
ResourceBundleELResolver.setValue(ELContext context,
Object base,
Object property,
Object value)
If the base object is a ResourceBundle, throw a PropertyNotWritableException. |
void |
MapELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
If the base object is a map, attempts to set the value associated with the given key, as specified by the property argument. |
void |
ListELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
If the base object is a list, attempts to set the value at the given index with the given value. |
abstract void |
ELResolver.setValue(ELContext context,
Object base,
Object property,
Object value)
Attempts to set the value of the given property
object on the given base object. |
void |
CompositeELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
Attempts to set the value of the given property
object on the given base object. |
void |
BeanELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
If the base object is not null, attempts to set the
value of the given property on this bean. |
void |
ArrayELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
If the base object is a Java language array, attempts to set the value at the given index with the given value. |
| 参数类型为 ELContext 的 javax.el 中的构造方法 | |
|---|---|
ELContextEvent(ELContext source)
Constructs an ELContextEvent object to indicate that an ELContext has been created. |
|
| javax.servlet.jsp 中 ELContext 的使用 |
|---|
| 返回 ELContext 的 javax.servlet.jsp 中的方法 | |
|---|---|
abstract ELContext |
JspContext.getELContext()
Returns the ELContext associated with this
JspContext. |
| javax.servlet.jsp.el 中 ELContext 的使用 |
|---|
| 参数类型为 ELContext 的 javax.servlet.jsp.el 中的方法 | |
|---|---|
Class<String> |
ScopedAttributeELResolver.getCommonPropertyType(ELContext context,
Object base)
If the base object is null, returns
String.class. |
Class<String> |
ImplicitObjectELResolver.getCommonPropertyType(ELContext context,
Object base)
If the base object is null, returns
String.class. |
Iterator<FeatureDescriptor> |
ScopedAttributeELResolver.getFeatureDescriptors(ELContext context,
Object base)
If the base object is null, returns an
Iterator containing FeatureDescriptor objects
with information about each scoped attribute resolved by this
resolver. |
Iterator<FeatureDescriptor> |
ImplicitObjectELResolver.getFeatureDescriptors(ELContext context,
Object base)
If the base object is null, and the property matches
the name of a JSP implicit object, returns an Iterator
containing FeatureDescriptor objects with information
about each JSP implicit object resolved by this resolver. |
Class<Object> |
ScopedAttributeELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is null, returns
Object.class to indicate that any type is valid to
set for a scoped attribute. |
Class |
ImplicitObjectELResolver.getType(ELContext context,
Object base,
Object property)
If the base object is null, and the property matches
the name of a JSP implicit object, returns null to
indicate that no types are ever accepted to setValue(). |
Object |
ScopedAttributeELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is null, searches the page,
request, session and application scopes for an attribute with
the given name and returns it, or null if no
attribute exists with the current name. |
Object |
ImplicitObjectELResolver.getValue(ELContext context,
Object base,
Object property)
If the base object is null, and the property matches
the name of a JSP implicit object, returns the implicit object. |
boolean |
ScopedAttributeELResolver.isReadOnly(ELContext context,
Object base,
Object property)
If the base object is null, returns false
to indicate that scoped attributes are never read-only. |
boolean |
ImplicitObjectELResolver.isReadOnly(ELContext context,
Object base,
Object property)
If the base object is null, and the property matches
the name of a JSP implicit object, returns true
to indicate that implicit objects cannot be overwritten. |
void |
ScopedAttributeELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
If the base object is null, sets an existing scoped
attribute to the new value, or creates a new scoped attribute if one
does not exist by this name. |
void |
ImplicitObjectELResolver.setValue(ELContext context,
Object base,
Object property,
Object val)
If the base object is null, and the property matches
the name of a JSP implicit object, throws
PropertyNotWritableException to indicate that implicit
objects cannot be overwritten. |
| org.apache.jasper.runtime 中 ELContext 的使用 |
|---|
| org.apache.jasper.runtime 中 ELContext 的子类 | |
|---|---|
class |
ELContextImpl
Concrete implementation of ELContext. |
| 返回 ELContext 的 org.apache.jasper.runtime 中的方法 | |
|---|---|
protected ELContext |
JspApplicationContextImpl.createELContext(ELResolver resolver)
|
ELContext |
PageContextImpl.getELContext()
|
ELContext |
JspContextWrapper.getELContext()
|
|
||||||||||
| 上一个 下一个 | 框架 无框架 | |||||||||