public class DfBeanDescImpl extends Object implements DfBeanDesc
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected Class<?> |
_beanClass |
protected Map<String,Field> |
_fieldMap |
protected Set<String> |
_invalidPropertyNames |
protected Map<String,Method[]> |
_methodsMap |
protected StringKeyMap<DfPropertyDesc> |
_propertyDescMap |
protected static Object[] |
EMPTY_ARGS |
protected static Class<?>[] |
EMPTY_PARAM_TYPES |
protected static String |
PREFIX_CLOSET_GETTER |
protected static String |
PREFIX_DETERMINER |
protected static String |
PREFIX_GETTER |
protected static String |
PREFIX_SETTER |
| コンストラクタと説明 |
|---|
DfBeanDescImpl(Class<?> beanClass) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
addFields(Class<?> clazz) |
protected void |
addPropertyDesc(DfPropertyDesc propertyDesc) |
protected boolean |
adjustNumber(Class<?>[] paramTypes,
Object[] args,
int index) |
protected DfPropertyDesc |
createPropertyDesc(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
Field field) |
protected void |
doSetupCouplePropertyDesc(Map<String,Method> coupleMethodMap,
Method method,
String methodName) |
protected Method[] |
findMethods(String methodName) |
Class<?> |
getBeanClass() |
Field |
getField(String fieldName) |
int |
getFieldSize() |
Method |
getMethod(String methodName) |
Method |
getMethod(String methodName,
Class<?>[] paramTypes) |
Method |
getMethodNoException(String methodName) |
Method |
getMethodNoException(String methodName,
Class<?>[] paramTypes) |
Method[] |
getMethods(String methodName) |
DfPropertyDesc |
getPropertyDesc(String propertyName) |
int |
getPropertyDescSize() |
List<String> |
getProppertyNameList() |
protected boolean |
hasCoupleProperties() |
boolean |
hasField(String fieldName) |
boolean |
hasMethod(String methodName) |
boolean |
hasPropertyDesc(String propertyName) |
protected static String |
initBeansProp(String name) |
protected boolean |
isAssignableParameterTypes(Class<?>[] specifiedTypes,
Method method) |
protected boolean |
isFieldPrivateAccessible() |
protected void |
setupField() |
protected void |
setupFields(Class<?> targetClass) |
protected void |
setupFieldsByClass(Class<?> targetClass) |
protected void |
setupFieldsByInterface(Class<?> interfaceClass) |
protected void |
setupMethod() |
protected void |
setupPropertyDesc() |
protected void |
setupReadMethod(Method readMethod,
String propertyName) |
protected void |
setupWriteMethod(Method writeMethod,
String propertyName) |
protected static final Object[] EMPTY_ARGS
protected static final Class<?>[] EMPTY_PARAM_TYPES
protected final Class<?> _beanClass
protected final StringKeyMap<DfPropertyDesc> _propertyDescMap
public DfBeanDescImpl(Class<?> beanClass)
public Class<?> getBeanClass()
getBeanClass インタフェース内 DfBeanDescpublic boolean hasPropertyDesc(String propertyName)
hasPropertyDesc インタフェース内 DfBeanDescpropertyName - The property name of the bean, case insensitive. (NotNull)public DfPropertyDesc getPropertyDesc(String propertyName) throws DfBeanPropertyNotFoundException
getPropertyDesc インタフェース内 DfBeanDescpropertyName - The property name of the bean, case insensitive. (NotNull)DfBeanPropertyNotFoundException - When the property is not found.public int getPropertyDescSize()
getPropertyDescSize インタフェース内 DfBeanDescpublic List<String> getProppertyNameList()
getProppertyNameList インタフェース内 DfBeanDescpublic boolean hasField(String fieldName)
hasField インタフェース内 DfBeanDescpublic Field getField(String fieldName)
getField インタフェース内 DfBeanDescpublic int getFieldSize()
getFieldSize インタフェース内 DfBeanDescpublic boolean hasMethod(String methodName)
hasMethod インタフェース内 DfBeanDescpublic Method getMethod(String methodName) throws DfBeanMethodNotFoundException
getMethod インタフェース内 DfBeanDescDfBeanMethodNotFoundExceptionpublic Method getMethod(String methodName, Class<?>[] paramTypes) throws DfBeanMethodNotFoundException
getMethod インタフェース内 DfBeanDescDfBeanMethodNotFoundExceptionpublic Method getMethodNoException(String methodName)
getMethodNoException インタフェース内 DfBeanDescpublic Method getMethodNoException(String methodName, Class<?>[] paramTypes)
getMethodNoException インタフェース内 DfBeanDescprotected boolean isAssignableParameterTypes(Class<?>[] specifiedTypes, Method method)
public Method[] getMethods(String methodName) throws DfBeanMethodNotFoundException
getMethods インタフェース内 DfBeanDescDfBeanMethodNotFoundExceptionprotected void setupPropertyDesc()
protected boolean hasCoupleProperties()
protected void doSetupCouplePropertyDesc(Map<String,Method> coupleMethodMap, Method method, String methodName)
protected void addPropertyDesc(DfPropertyDesc propertyDesc)
protected void setupMethod()
protected void setupField()
protected void setupFields(Class<?> targetClass)
protected void setupFieldsByInterface(Class<?> interfaceClass)
protected void addFields(Class<?> clazz)
protected boolean isFieldPrivateAccessible()
protected void setupFieldsByClass(Class<?> targetClass)
protected DfPropertyDesc createPropertyDesc(String propertyName, Class<?> propertyType, Method readMethod, Method writeMethod, Field field)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.