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 a Jakarta Expression
Language 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 jakarta. |
| public Iterator | Returns: null.The context of this evaluation. context, Object An base)ELClass.Overrides jakarta.
Deprecated
for removal since 5.0. This method will be removed without replacement in EL 6.0
Returns the properties that can be resolved.
|
| public Class | Returns: If thepropertyResolved property of ELContext was set to true, then
null; otherwise undefined.The context of this evaluation. context, Object An base, Object ELClass.The name of the field. property)Implements abstract jakarta. |
| 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 jakarta. 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 methodName, 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 jakarta. |
| public boolean | Returns: trueThe context of this evaluation. context, Object An base, Object ELClass.The name of the bean. property)Implements abstract jakarta. Inquires whether the static field is writable. |
| public void |
| StaticFieldELResolver | back to summary |
|---|---|
| public StaticFieldELResolver() | |
| getCommonPropertyType | back to summary |
|---|---|
| public Class Implements abstract jakarta. Returns the type of the property. Always returns | |
| getFeatureDescriptors | back to summary |
|---|---|
| public Iterator Overrides jakarta. Deprecated for removal since 5.0. This method will be removed without replacement in EL 6.0 Returns the properties that can be resolved. Always returns
| |
| getType | back to summary |
|---|---|
| public Class Implements abstract jakarta. 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 jakarta. 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 methodName, Class<?>[] paramTypes, Object[] params) Overrides jakarta. Invokes a public static method or the constructor for a class.
If the base object is an instance of
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 jakarta. 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 jakarta. Attempts to write to a static field.
If the base object is an instance of
| |