|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.util.ReflectionUtils
public final class ReflectionUtils
Utility class containing methods for convenient use of java.lang.reflect.
Constructor Summary | |
---|---|
ReflectionUtils()
|
Method Summary | |
---|---|
static Field[] |
getAllFields(Class clazz)
Retrieve all fields of a class, declared in the class itself OR in a superclass |
static Field[] |
getAllFieldsAssignableTo(Class clazz,
Class<?> pattern)
Similar to getAllFields(Class) but returns only those fields which are assignable to pattern |
static Field[] |
getAllFieldsMatching(Class clazz,
net.sourceforge.combean.util.ReflectionUtils.FieldProperty prop)
Similar to getAllFields(Class) but returns only those fields for which the given FieldProperty returns true |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionUtils()
Method Detail |
---|
public static Field[] getAllFields(Class clazz)
clazz
- class for which all fields shall be retrieved
public static Field[] getAllFieldsAssignableTo(Class clazz, Class<?> pattern)
clazz
- class for which all matching fields shall be retrievedpattern
- the class to which matching fields shall be assignable
public static Field[] getAllFieldsMatching(Class clazz, net.sourceforge.combean.util.ReflectionUtils.FieldProperty prop)
clazz
- class for which all matching fields shall be retrievedprop
- the FieldProperty which determines whether a field shall
be returned or not
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |