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 boolean |
isJavaPackage(Class<?> clazz)
判断一个类是否属于
java或JDK包 |
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 Field[] |
listDeclaredFieldsUntilJavaPackage(Class<?> beanClass)
List all declared fields that contains all supper class
|
static Field[] |
listDeclaredFieldsUntilJavaPackage(Class<?> beanClass,
Class<?> stopClass)
List all declared fields that contains all supper class
|
static Field[] |
listDeclaredFieldsUntilJavaPackage(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 Map<String,Method> |
readMethodsMap(Class<?> beanClass,
Class<?> stopClass)
List all declared read methods that contains all supper class
|
static Map<String,Method> |
writeMethodsMap(Class<?> beanClass,
Class<?> stopClass)
List all declared write methods that contains all supper class
|
public static Field[] listDeclaredFields(Class<?> beanClass)
beanClass - The bean class to be analyzed.public static Field[] listDeclaredFieldsUntilJavaPackage(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[] listDeclaredFieldsUntilJavaPackage(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[] listDeclaredFieldsUntilJavaPackage(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 Map<String,Method> readMethodsMap(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) 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 Map<String,Method> writeMethodsMap(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 int indexOf(Method[] methods, Method source)
methods - the array methods to be foundsource - the source methodpublic static boolean isJavaPackage(Class<?> clazz)
java或JDK包clazz - 要检查的类对象true如果该类属于java.*或jdk.*包Copyright © 2025. All rights reserved.