public class MethodAccess extends AccessStrategy
| Constructor and Description |
|---|
MethodAccess(Method method)
Create a new MethodAccess instance.
|
MethodAccess(String propertyName,
Method method)
Create a new MethodAccess instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
get(Object instance)
Get the value from the given instance.
|
ElementType |
getElementType()
Get the Java program
ElementType used by this AccessStrategy
to determine property values. |
Type |
getJavaType()
Get the type of the property
|
String |
getPropertyName()
Get a name representative of this property.
|
static String |
getPropertyName(Method member)
Process bean properties getter by applying the JavaBean naming conventions.
|
int |
hashCode() |
String |
toString() |
public MethodAccess(Method method)
method - public static String getPropertyName(Method member)
member - the member for which to get the property name.null
the method name id not according to the JavaBeans standard.public String getPropertyName()
getPropertyName in class AccessStrategypublic Object get(Object instance)
get in class AccessStrategypublic ElementType getElementType()
ElementType used by this AccessStrategy
to determine property values.getElementType in class AccessStrategypublic Type getJavaType()
getJavaType in class AccessStrategyCopyright © 2010–2024 The Apache Software Foundation. All rights reserved.