java.util.Map .
| Modifier and Type | Class and Description |
|---|---|
| private static class | MapAccessor.
Exception thrown from |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canRead(EvaluationContext
the evaluation context in which the access is being attempted context, Object the target object upon which the property is being accessed target, String the name of the property being accessed name)Implements org. Called to determine if a resolver instance is able to access a specified property on a specified target object. |
| public boolean | canWrite(EvaluationContext
the evaluation context in which the access is being attempted context, Object the target object upon which the property is being accessed target, String the name of the property being accessed name)Implements org. Called to determine if a resolver instance is able to write to a specified property on a specified target object. |
| public void | generateCode(String
the name of the property propertyName, MethodVisitor the ASM method visitor into which code should be generated mv, CodeFlow the current state of the expression compiler cf)Implements org. Generate the bytecode the performs the access operation into the specified
|
| public Class | getPropertyType()
Implements org. Return the type of the accessed property - may only be known once an access has occurred. |
| public Class | getSpecificTargetClasses()
Implements org. Return an array of classes for which this resolver should be called. |
| public boolean | isCompilable()
Implements org. Return |
| public TypedValue | read(EvaluationContext
the evaluation context in which the access is being attempted context, Object the target object upon which the property is being accessed target, String the name of the property being accessed name)Implements org. Called to read a property from a specified target object. |
| public void | write(EvaluationContext
the evaluation context in which the access is being attempted context, Object the target object upon which the property is being accessed target, String the name of the property being accessed name, Object the new value for the property newValue)Implements org. Called to write to a property on a specified target object. |
| MapAccessor | back to summary |
|---|---|
| public MapAccessor() | |
| canRead | back to summary |
|---|---|
| public boolean canRead(EvaluationContext context, Object target, String name) throws AccessException Implements org. Doc from org. Called to determine if a resolver instance is able to access a specified property on a specified target object.
| |
| canWrite | back to summary |
|---|---|
| public boolean canWrite(EvaluationContext context, Object target, String name) throws AccessException Implements org. Doc from org. Called to determine if a resolver instance is able to write to a specified property on a specified target object.
| |
| generateCode | back to summary |
|---|---|
| public void generateCode(String propertyName, MethodVisitor mv, CodeFlow cf) Implements org. Doc from org. Generate the bytecode the performs the access operation into the specified
| |
| getPropertyType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return the type of the accessed property - may only be known once an access has occurred.
| |
| getSpecificTargetClasses | back to summary |
|---|---|
| public Class Implements org. Doc from org. Return an array of classes for which this resolver should be called. Returning | |
| isCompilable | back to summary |
|---|---|
| public boolean isCompilable() Implements org. Doc from org. Return
| |
| read | back to summary |
|---|---|
| public TypedValue read(EvaluationContext context, Object target, String name) throws AccessException Implements org. Doc from org. Called to read a property from a specified target object.
Should only succeed if
| |
| write | back to summary |
|---|---|
| public void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException Implements org. Doc from org. Called to write to a property on a specified target object.
Should only succeed if
| |
read in order to reset a cached
PropertyAccessor, allowing other accessors to have a try.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMessage()
Overrides java. Returns the detail message string of this throwable. |
| key | back to summary |
|---|---|
| private final String key | |
| MapAccessException | back to summary |
|---|---|
| public MapAccessException(String key) | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Doc from java. Returns the detail message string of this throwable. | |