public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Method> |
buildAccessorMap(Class<?> c)
Builds a list of methods with zero parameter methods taking precedence over overrides
for a given single level class.
|
static Map<String,Method> |
buildInjectorMap(Class<?> c)
Builds a list of methods with zero parameter methods taking precedence over overrides
for a given single level class.
|
static Method |
oneParameterMethodPreference(Method method1,
Method method2)
Binary Operator that returns a method with zero parameters on conflict.
|
static Method |
zeroParameterMethodPreference(Method method1,
Method method2)
Binary Operator that returns a method with zero parameters on conflict.
|
public static Map<String,Method> buildAccessorMap(Class<?> c)
c
- - class to get the declared methods forpublic static Map<String,Method> buildInjectorMap(Class<?> c)
c
- - class to get the declared methods forpublic static Method zeroParameterMethodPreference(Method method1, Method method2)
method1
- - 1st method to comparemethod2
- - 2nd method to comparepublic static Method oneParameterMethodPreference(Method method1, Method method2)
method1
- - 1st method to comparemethod2
- - 2nd method to compareCopyright © 2023. All rights reserved.