public class ReflectUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
indexOf(Method[] methods,
Method source)
Found source method in methods array witch the source method
equals it or the has a same method name and return-type and same parameters
|
static Field[] |
listDeclaredFields(Class<?> beanClass)
List all declared fields that contains all supper class
|
static Field[] |
listDeclaredFields(Class<?> beanClass,
Class<?> stopClass)
List all declared fields that contains all supper class
|
static Field[] |
listDeclaredFields(Class<?> beanClass,
Class<?> stopClass,
Predicate<Field> filter)
List all declared fields that contains all supper class
|
static Field[] |
listDeclaredFields(Class<?> beanClass,
Predicate<Field> filter)
List all declared fields that contains all supper class
|
static Method[] |
listDeclaredMethods(Class<?> beanClass)
List all declared methods that contains all supper class
|
static Method[] |
listDeclaredMethods(Class<?> beanClass,
Class<?> stopClass)
List all declared methods that contains all supper class
|
static Method[] |
listDeclaredMethods(Class<?> beanClass,
Class<?> stopClass,
Predicate<Method> filter)
List all declared methods that contains all supper class
|
static Method[] |
listDeclaredMethods(Class<?> beanClass,
Predicate<Method> filter)
List all declared methods that contains all supper class
|
static Method[] |
listReadMethods(Class<?> beanClass)
List all declared read methods that contains all supper class
|
static Method[] |
listReadMethods(Class<?> beanClass,
Class<?> stopClass)
List all declared read methods that contains all supper class
|
static Method[] |
listReadMethods(Class<?> beanClass,
Class<?> stopClass,
Predicate<Method> filter)
List all declared read methods that contains all supper class
|
static Method[] |
listReadMethods(Class<?> beanClass,
Predicate<Method> filter)
List all declared read methods that contains all supper class
|
static Method[] |
listWriteMethods(Class<?> beanClass)
List all declared write methods that contains all supper class
|
static Method[] |
listWriteMethods(Class<?> beanClass,
Class<?> stopClass)
List all declared write methods that contains all supper class
|
static Method[] |
listWriteMethods(Class<?> beanClass,
Class<?> stopClass,
Predicate<Method> filter)
List all declared methods that contains all supper class
|
static Method[] |
listWriteMethods(Class<?> beanClass,
Predicate<Method> filter)
List all declared methods that contains all supper class
|
static int |
mapping(Method[] writeMethods,
Map<String,Method> tmp,
PropertyDescriptor[] propertyDescriptors,
Method[] mergedMethods) |
public static Field[] listDeclaredFields(Class<?> beanClass)
beanClass - The bean class to be analyzed.public static Field[] listDeclaredFields(Class<?> beanClass, Class<?> stopClass)
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.public static Field[] listDeclaredFields(Class<?> beanClass, Predicate<Field> filter)
beanClass - The bean class to be analyzed.filter - A field filterpublic static Field[] listDeclaredFields(Class<?> beanClass, Class<?> stopClass, Predicate<Field> filter)
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.filter - A field filterpublic static Method[] listDeclaredMethods(Class<?> beanClass) throws IntrospectionException
beanClass - The bean class to be analyzed.IntrospectionException - happens during introspection errorpublic static Method[] listDeclaredMethods(Class<?> beanClass, Predicate<Method> filter) throws IntrospectionException
beanClass - The bean class to be analyzed.filter - A method filterIntrospectionException - happens during introspection errorpublic static Method[] listDeclaredMethods(Class<?> beanClass, Class<?> stopClass) throws IntrospectionException
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.IntrospectionException - happens during introspection errorpublic static Method[] listDeclaredMethods(Class<?> beanClass, Class<?> stopClass, Predicate<Method> filter) throws IntrospectionException
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.filter - A method filterIntrospectionException - happens during introspection errorpublic static Method[] listReadMethods(Class<?> beanClass) throws IntrospectionException
beanClass - The bean class to be analyzed.IntrospectionException - happens during introspection errorpublic static Method[] listReadMethods(Class<?> beanClass, Class<?> stopClass) throws IntrospectionException
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.IntrospectionException - happens during introspection errorpublic static Method[] listReadMethods(Class<?> beanClass, Predicate<Method> filter) throws IntrospectionException
beanClass - The bean class to be analyzed.filter - A method filterIntrospectionException - happens during introspection errorpublic static Method[] listReadMethods(Class<?> beanClass, Class<?> stopClass, Predicate<Method> filter) throws IntrospectionException
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.filter - A method filterIntrospectionException - happens during introspection errorpublic static Method[] listWriteMethods(Class<?> beanClass) throws IntrospectionException
beanClass - The bean class to be analyzed.IntrospectionException - happens during introspection errorpublic static Method[] listWriteMethods(Class<?> beanClass, Class<?> stopClass) throws IntrospectionException
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.IntrospectionException - happens during introspection errorpublic static Method[] listWriteMethods(Class<?> beanClass, Predicate<Method> filter) throws IntrospectionException
beanClass - The bean class to be analyzed.filter - A method filterIntrospectionException - happens during introspection errorpublic static Method[] listWriteMethods(Class<?> beanClass, Class<?> stopClass, Predicate<Method> filter) throws IntrospectionException
beanClass - The bean class to be analyzed.stopClass - The base class at which to stop the analysis. Any
methods/properties/events in the stopClass or in its base classes
will be ignored in the analysis.filter - A method filterIntrospectionException - happens during introspection errorpublic static int indexOf(Method[] methods, Method source)
methods - the array methods to be foundsource - the source methodCopyright © 2022. All rights reserved.