| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final String | FORMATTER
Name under which to bind a formatter to the EL context. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | |
| public Class | getCommonPropertyType(ELContext
The context of this evaluation. context, Object The base object to return the most general property type for, or base)null to enumerate the set
of top-level variables that this resolver can evaluate.Implements abstract jakarta. property argument, given a
base object.
|
| public Iterator | getFeatureDescriptors(ELContext
The context of this evaluation. context, Object The base object whose set of valid properties is to be enumerated, or base)null to enumerate the
set of top-level variables that this resolver can evaluate.Overrides jakarta. base
object.
|
| public Class | getType(ELContext
The context of this evaluation. context, Object The base object whose property value is to be analyzed, or base, Object null to analyze a top-level
variable.The property or variable to return the acceptable type for. property)Implements abstract jakarta. 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 setValue
method.
|
| public Object | getValue(ELContext
The context of this evaluation. context, Object The base object whose property value is to be returned, or base, Object null to resolve a top-level
variable.The property or variable to be resolved. property)Implements abstract jakarta. property object on the given base object.
|
| public Object | invoke(ELContext
The context of this evaluation. context, Object The bean on which to invoke the method base, Object The simple name of the method to invoke. Will be coerced to a method, Class<?>[] String.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. method on the given base object.
|
| public boolean | isReadOnly(ELContext
The context of this evaluation. context, Object The base object whose property value is to be analyzed, or base, Object null to analyze a top-level
variable.The property or variable to return the read-only status for. property)Implements abstract jakarta. base and property, attempts to determine whether a call to setValue
will always fail.
|
| public void | setValue(ELContext
The context of this evaluation. context, Object The base object whose property value is to be set, or base, Object null to set a top-level variable.The property or variable to be set. property, Object The value to set the property or variable to. value)Implements abstract jakarta. property object on the given base object.
|
| FORMAT | back to summary |
|---|---|
| private static final String FORMAT | |
| FORMATTER | back to summary |
|---|---|
| public static final String FORMATTER Name under which to bind a formatter to the EL context. | |
| RootResolver | back to summary |
|---|---|
| public RootResolver() | |
| evaluateFormatExpression | back to summary |
|---|---|
| private Object evaluateFormatExpression(ELContext context, Object method, Object[] params) | |
| getCommonPropertyType | back to summary |
|---|---|
| public Class Implements abstract jakarta. Doc from jakarta. Returns the most general type that this resolver accepts for the
This assists tools in auto-completion and also provides a way to express that the resolver accepts a primitive value,
such as an integer index into an array. For example, the
| |
| getFeatureDescriptors | back to summary |
|---|---|
| public Iterator Overrides jakarta. Doc from jakarta. Returns information about the set of variables or properties that can be resolved for the given
If the
The
Each
The caller should be aware that the
This is a "best-effort" list. Not all
The
The default implementation in
| |
| getType | back to summary |
|---|---|
| public Class Implements abstract jakarta. Doc from jakarta. For a given
If this resolver handles the given (base, property) pair, the
This is not always the same as
If the resolver or the property is read-only, this method must return
| |
| getValue | back to summary |
|---|---|
| public Object getValue(ELContext context, Object base, Object property) Implements abstract jakarta. Doc from jakarta. Attempts to resolve the given
If this resolver handles the given (base, property) pair, the
| |
| invoke | back to summary |
|---|---|
| public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) Overrides jakarta. Doc from jakarta. Attempts to resolve and invoke the given
If this resolver handles the given (base, method) pair, the A default implementation is provided that returns null so that existing classes that extend ELResolver can continue to function.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(ELContext context, Object base, Object property) Implements abstract jakarta. Doc from jakarta. For a given
If this resolver handles the given (base, property) pair, the
| |
| setValue | back to summary |
|---|---|
| public void setValue(ELContext context, Object base, Object property, Object value) Implements abstract jakarta. Doc from jakarta. Attempts to set the value of the given
If this resolver handles the given (base, property) pair, the | |