public class BeanHelper extends Object
BeanHelper class.
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
GETTER_BOOLEAN_PREFIX
Constant
GETTER_BOOLEAN_PREFIX="is" |
static String |
GETTER_PREFIX
Constant
GETTER_PREFIX="get" |
static String |
SETTER_PREFIX
Constant
SETTER_PREFIX="set" |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getGetterName(String propertyName)
通过属性名获取getter名
|
static String |
getPropertyName(String getterOrSetter)
getPropertyName.
|
static String |
getSetterName(String propertyName)
通过属性名得到setter名
|
static boolean |
isGetter(String methodName)
isGetter.
|
static boolean |
isGetterBoolean(String methodName)
isGetterBoolean.
|
static boolean |
isSetter(String methodName)
isSetter.
|
public static final String GETTER_BOOLEAN_PREFIX
GETTER_BOOLEAN_PREFIX="is"public static boolean isGetter(String methodName)
isGetter.
methodName - a String objectpublic static boolean isGetterBoolean(String methodName)
isGetterBoolean.
methodName - a String objectpublic static boolean isSetter(String methodName)
isSetter.
methodName - a String objectpublic static String getSetterName(String propertyName)
propertyName - 属性名Copyright © 2023 dromara. All rights reserved.