public static class RMKey.KeyAccessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_FIELD |
static int |
TYPE_GETSET |
static int |
TYPE_LISTKEY |
static int |
TYPE_MAP |
static int |
TYPE_METHODS |
static int |
TYPE_UNKNOWN |
Constructor and Description |
---|
RMKey.KeyAccessor(java.lang.Object anObj,
java.lang.String aKey)
Creates a new getter for given object and key (caches type).
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object anObj)
This method actually retrieves a value for an object and a key.
|
java.lang.reflect.Method |
getGetMethod()
Searches for a get method for given key then caches and returns result.
|
java.lang.reflect.Method |
getSetMethod()
Searches for a set method for given key then caches and returns result.
|
boolean |
set(java.lang.Object anObj,
java.lang.Object aValue)
This method actually retrieves a value for an object and a key.
|
public static final int TYPE_MAP
public static final int TYPE_GETSET
public static final int TYPE_METHODS
public static final int TYPE_FIELD
public static final int TYPE_LISTKEY
public static final int TYPE_UNKNOWN
public RMKey.KeyAccessor(java.lang.Object anObj, java.lang.String aKey)
public java.lang.Object get(java.lang.Object anObj)
public java.lang.reflect.Method getGetMethod()
public boolean set(java.lang.Object anObj, java.lang.Object aValue)
public java.lang.reflect.Method getSetMethod()