An ELResolver for resolving static fields, enum constants and
static methods. Also handles constructor calls as a special case.
The resolver handles base objects of the type ELClass, which
is usually generated by an EL implementation.
ELClass
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: String.class.The context of this evaluation. context, Object An base)ELClass.Implements abstract javax. |
| public Iterator | Returns: null.The context of this evaluation. context, Object An base)ELClass.Implements abstract javax. |
| public Class | Returns: If thepropertyResolved property of
ELContext was set to true, then
the type of the type of the field.The context of this evaluation. context, Object An base, Object ELClass.The name of the field. property)Implements abstract javax. Returns the type of a static field. |
| public Object | Returns: If thepropertyResolved property of
ELContext was set to true, then
the static field value.The context of this evaluation. context, Object An base, Object ELClass.A static field name. property)Implements abstract javax. Returns the value of a static field. |
| public Object | Returns: The result of the method invocation (null if
the method has a void return type).The context of this evaluation. context, Object An base, Object ELClassWhen coerced to a method, Class<?>[] String,
the simple name of the method.An array of Class objects identifying the
method's formal parameter types, in declared order.
Use an empty array if the method has no parameters.
Can be paramTypes, Object[] null, in which case the method's formal
parameter types are assumed to be unknown.The parameters to pass to the method, or
params)null if no parameters.Overrides javax. Invokes a public static method or the constructor for a class. |
| public boolean | Returns: trueThe context of this evaluation. context, Object An base, Object ELClass.The name of the bean. property)Implements abstract javax. Inquires whether the static field is writable. |
| public void |
| StaticFieldELResolver | back to summary |
|---|---|
| public StaticFieldELResolver() | |
| getCommonPropertyType | back to summary |
|---|---|
| public Class Implements abstract javax. Returns the type of the property.
Always returns | |
| getFeatureDescriptors | back to summary |
|---|---|
| public Iterator Implements abstract javax. Returns the properties that can be resolved.
Always returns
| |
| getType | back to summary |
|---|---|
| public Class Implements abstract javax. Returns the type of a static field. If the base object is an instance of
| |
| getValue | back to summary |
|---|---|
| public Object getValue(ELContext context, Object base, Object property) Implements abstract javax. Returns the value of a static field. If the base object is an instance of ELClass, return the value of the static field.
An Enum constant is a
public static field of an Enum object, and is a special case of this.
| |
| invoke | back to summary |
|---|---|
| public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) Overrides javax. Invokes a public static method or the constructor for a class. If the base object is an instance ofELClass and the
method is a String,
the propertyResolved property of the
ELContext object must be set to true
by the resolver, before returning. If this property is not
true after this method is called, the caller
should ignore the return value.
Invoke the public static method specified by The process involved in the method selection is
the same as that used in As a special case, if the name of the method is "<init>", the constructor for the class will be invoked.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(ELContext context, Object base, Object property) Implements abstract javax. Inquires whether the static field is writable. If the base object is an instance of Always returns a
| |
| setValue | back to summary |
|---|---|
| public void setValue(ELContext context, Object base, Object property, Object value) Implements abstract javax. Attempts to write to a static field. If the base object is an instance of
| |