public class ReflectionUtils extends Object
Constructor and Description |
---|
ReflectionUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Field> |
getDeepDeclaredFieldMap(Class c)
Return all Fields from a class (including inherited), mapped by
String field name to java.lang.reflect.Field.
|
static Collection<Field> |
getDeepDeclaredFields(Class c)
Get all non static, non transient, fields of the passed in class, including
private fields.
|
static Annotation |
getMethodAnnotation(Method method,
Class annoClass)
Get a Mehod annotation, even if the method is on an object behind a
JDK proxy, CGLib proxy, Javassist proxy, etc.
|
public static Annotation getMethodAnnotation(Method method, Class annoClass)
method
- Method to check for annotationannoClass
- Annotation classpublic static Collection<Field> getDeepDeclaredFields(Class c)
c
- Class instancepublic static Map<String,Field> getDeepDeclaredFieldMap(Class c)
c
- Class whose fields are being fetched.Copyright © 2013. All rights reserved.