public class BeanMethod extends Object
Modifier and Type | Field and Description |
---|---|
private Method |
method |
private BeanMethodType |
methodType |
private static String |
NAME_ACCESS |
private static String |
NAME_EQUALS |
private static String |
NAME_HASH |
private static String |
NAME_HASH_CODE |
private static String |
NAME_IS_EQUAL_TO |
private static String |
NAME_TO_STRING |
private static String |
PREFIX_GET |
private static String |
PREFIX_HAS |
private static String |
PREFIX_IS |
private static String |
PREFIX_SET |
private String |
propertyName |
private Type |
propertyType |
private static String |
SUFFIX_PROPERTY |
Constructor and Description |
---|
BeanMethod(Method method)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private String |
getCapitalSuffixAfterPrefix(String string,
String prefix) |
private String |
getCapitalSuffixAfterPrefixes(String string,
String... prefixes) |
Method |
getMethod() |
BeanMethodType |
getMethodType() |
String |
getPropertyName() |
Type |
getPropertyType() |
private static final String PREFIX_SET
private static final String PREFIX_GET
private static final String SUFFIX_PROPERTY
private static final String PREFIX_IS
private static final String PREFIX_HAS
private static final String NAME_ACCESS
private static final String NAME_EQUALS
private static final String NAME_IS_EQUAL_TO
private static final String NAME_HASH_CODE
private static final String NAME_HASH
private static final String NAME_TO_STRING
private final Method method
private final BeanMethodType methodType
private final String propertyName
private final Type propertyType
public BeanMethod(Method method)
method
- - see getMethod()
.private String getCapitalSuffixAfterPrefixes(String string, String... prefixes)
private String getCapitalSuffixAfterPrefix(String string, String prefix)
public BeanMethodType getMethodType()
BeanMethodType
or null
for undefined Method
.public String getPropertyName()
null
if no property.public Type getPropertyType()
Type
of the property or null
if no property. Will be the Type
of the
WritableProperty
for BeanMethodType.PROPERTY
.Copyright © 2001–2016 mmm-Team. All rights reserved.