| Modifier and Type | Field and Description |
|---|---|
| public static final Predicate | |
| public static final Method | |
| public static final Method | |
| public static final Method | |
| public static final Method | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Method | |
| public static Method | |
| public static Method | Returns: the Method object, ornull if none foundthe class to introspect clazz, String the name of the method name, Predicate<Method> tells what methods to ignore in the research filter, Class<?>... the parameter types of the method (may be paramTypes)null to
indicate any signature)Attempt to find a |
| public static < type of the class searched T> Constructor | Returns: a constructor with the arguments inobjsclass on which we are searching the constructor clazz, Object... list of arguments of the constructor objs)Returns a constructor that contains |
| public static Method | Returns: the method searchedclass on which the getDeclaredMethod is called clazz, String method name name, Class<?>... method parameters paramTypes)Basically calls getDeclaredMethod on a Class but wraps the NoSuchMethodException into a Runtime. |
| public static Set | Returns: all default methodsclass for which we want the default method clazz)Return all default methods of an interface and it's inherited interface. |
| public static boolean | Returns: true if the class was foundfull class name className)Tells if a class is available in the classpath |
| private static boolean | isMatchingConstructor(Constructor<?> classConstructor, Object... objs)
Returns true if objects in |
| private static Class | Returns: the boxed equivalentthe primitive type parameterType)Given a primitive type, returns its boxed equivalent. |
| NOT_PRIVATE | back to summary |
|---|---|
| public static final Predicate<Method> NOT_PRIVATE | |
| OBJECT_EQUALS | back to summary |
|---|---|
| public static final Method OBJECT_EQUALS | |
| OBJECT_FINALIZE | back to summary |
|---|---|
| public static final Method OBJECT_FINALIZE | |
| OBJECT_HASHCODE | back to summary |
|---|---|
| public static final Method OBJECT_HASHCODE | |
| OBJECT_TOSTRING | back to summary |
|---|---|
| public static final Method OBJECT_TOSTRING | |
| primitiveToWrapperType | back to summary |
|---|---|
| private static final Map<Class<?>, Class<?>> primitiveToWrapperType | |
| ReflectionUtils | back to summary |
|---|---|
| private ReflectionUtils() | |
| findDefaultMethod | back to summary |
|---|---|
| private static Method findDefaultMethod(Class<?> searchedClass, String name, Class<?>[] paramTypes) | |
| findMethod | back to summary |
|---|---|
| public static Method findMethod(Class<?> clazz, String name, Predicate<Method> filter) Attempt to find a
Returns | |
| findMethod | back to summary |
|---|---|
| public static Method findMethod(Class<?> clazz, String name, Predicate<Method> filter, Class<?>... paramTypes) Attempt to find a
Returns
| |
| getConstructor | back to summary |
|---|---|
| public static <T> Constructor Returns a constructor that contains
We could not do something like
| |
| getDeclaredMethod | back to summary |
|---|---|
| public static Method getDeclaredMethod(Class<?> clazz, String name, Class<?>... paramTypes) Basically calls getDeclaredMethod on a Class but wraps the NoSuchMethodException into a Runtime. | |
| getDefaultMethods | back to summary |
|---|---|
| public static Set Return all default methods of an interface and it's inherited interface. | |
| isClassAvailable | back to summary |
|---|---|
| public static boolean isClassAvailable(String className) Tells if a class is available in the classpath
| |
| isMatchingConstructor | back to summary |
|---|---|
| private static boolean isMatchingConstructor(Constructor<?> classConstructor, Object... objs) Returns true if objects in | |
| wrapPrimitive | back to summary |
|---|---|
| private static Class Given a primitive type, returns its boxed equivalent. For instance, given
| |