public class ReflectUtils
extends java.lang.Object
Constructor and Description |
---|
ReflectUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Constructor |
getAnnotatedConstructor(java.lang.Class clazz) |
static java.lang.reflect.Method |
getAnnotatedCreateMethod(java.lang.Class clazz) |
static java.util.List<java.lang.reflect.Field> |
getFields(java.lang.Class<?> clazz) |
static java.util.List<java.lang.reflect.Method> |
getMethods(java.lang.Class clazz)
Returns the list of non private/protected, non-static methods in the class, caching the
results.
|
static boolean |
isGetter(java.lang.reflect.Method method) |
static boolean |
isSetter(java.lang.reflect.Method method) |
static java.lang.String |
stripGetterPrefix(java.lang.String method) |
static java.lang.String |
stripPrefix(java.lang.String methodName,
java.lang.String prefix) |
static java.lang.String |
stripSetterPrefix(java.lang.String method) |
public static java.util.List<java.lang.reflect.Method> getMethods(java.lang.Class clazz)
@Nullable public static java.lang.reflect.Constructor getAnnotatedConstructor(java.lang.Class clazz)
@Nullable public static java.lang.reflect.Method getAnnotatedCreateMethod(java.lang.Class clazz)
public static java.util.List<java.lang.reflect.Field> getFields(java.lang.Class<?> clazz)
public static boolean isGetter(java.lang.reflect.Method method)
public static boolean isSetter(java.lang.reflect.Method method)
public static java.lang.String stripPrefix(java.lang.String methodName, java.lang.String prefix)
public static java.lang.String stripGetterPrefix(java.lang.String method)
public static java.lang.String stripSetterPrefix(java.lang.String method)