public class ReflectUtil
extends org.springframework.util.ReflectionUtils
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Annotation> |
getAnnotation(Class<?> clazz,
String fieldName,
Class<T> annotationClass) |
static PropertyDescriptor[] |
getBeanGetters(Class type) |
static PropertyDescriptor[] |
getBeanSetters(Class type) |
static Field |
getField(Class<?> clazz,
String fieldName) |
static PropertyDescriptor[] |
getPropertiesHelper(Class type,
boolean read,
boolean write) |
static org.springframework.core.convert.Property |
getProperty(Class<?> propertyType,
PropertyDescriptor propertyDescriptor,
String propertyName) |
static org.springframework.core.convert.Property |
getProperty(Class<?> propertyType,
String propertyName) |
static org.springframework.core.convert.TypeDescriptor |
getTypeDescriptor(Class<?> propertyType,
PropertyDescriptor propertyDescriptor,
String propertyName) |
static org.springframework.core.convert.TypeDescriptor |
getTypeDescriptor(Class<?> propertyType,
String propertyName) |
accessibleConstructor, clearCache, declaresException, doWithFields, doWithFields, doWithLocalFields, doWithLocalMethods, doWithMethods, doWithMethods, findField, findField, findMethod, findMethod, getAllDeclaredMethods, getField, getUniqueDeclaredMethods, handleInvocationTargetException, handleReflectionException, invokeJdbcMethod, invokeJdbcMethod, invokeMethod, invokeMethod, isCglibRenamedMethod, isEqualsMethod, isHashCodeMethod, isObjectMethod, isPublicStaticFinal, isToStringMethod, makeAccessible, makeAccessible, makeAccessible, rethrowException, rethrowRuntimeException, setField, shallowCopyFieldStatepublic static PropertyDescriptor[] getBeanGetters(Class type)
public static PropertyDescriptor[] getBeanSetters(Class type)
public static PropertyDescriptor[] getPropertiesHelper(Class type, boolean read, boolean write)
@Nullable public static org.springframework.core.convert.Property getProperty(Class<?> propertyType, String propertyName)
public static org.springframework.core.convert.Property getProperty(Class<?> propertyType, PropertyDescriptor propertyDescriptor, String propertyName)
@Nullable public static org.springframework.core.convert.TypeDescriptor getTypeDescriptor(Class<?> propertyType, String propertyName)
public static org.springframework.core.convert.TypeDescriptor getTypeDescriptor(Class<?> propertyType, PropertyDescriptor propertyDescriptor, String propertyName)
@Nullable public static <T extends Annotation> T getAnnotation(Class<?> clazz, String fieldName, Class<T> annotationClass)
Copyright © 2020. All rights reserved.