class MethodBasedPropertyResolver extends AbstractBasicPropertyResolver
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
METHOD_PREFIX_GET |
(package private) static java.lang.String |
METHOD_PREFIX_IS |
| Constructor and Description |
|---|
MethodBasedPropertyResolver(java.lang.reflect.Method method)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.String |
getPropertyNameFromMethod(java.lang.reflect.Method m) |
java.lang.Object |
getPropertyValue(java.lang.Object object)
Get the value property from a given object.
|
(package private) static boolean |
isProperty(java.lang.reflect.Method m)
Check whether a method defines a property value.
|
getPropertyNamestatic final java.lang.String METHOD_PREFIX_GET
static final java.lang.String METHOD_PREFIX_IS
public MethodBasedPropertyResolver(java.lang.reflect.Method method)
method - method to wrapstatic java.lang.String getPropertyNameFromMethod(java.lang.reflect.Method m)
static boolean isProperty(@NotNull java.lang.reflect.Method m)
m - method to checktrue if the method defines a propertyfalse if notpublic java.lang.Object getPropertyValue(java.lang.Object object)
throws PropertyResolveException
object - the objectPropertyResolveException - on errors during the resolve