|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.seas.iis.util.ReflectionUtils
public class ReflectionUtils
Constructor Summary | |
---|---|
ReflectionUtils()
|
Method Summary | |
---|---|
static java.lang.Class[] |
getInterfaces(java.lang.Class c)
Returns all interfaces implemented by a given class or its parents |
static java.lang.Object |
getStaticFieldValueForClass(java.lang.String fieldName,
java.lang.Class c,
java.lang.Object defaultValue)
Returns the value of the static field of a given name from a given class; if the field is not defined in that class, the method will inspect all of the ancestors of the class (though not interfaces) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReflectionUtils()
Method Detail |
---|
public static java.lang.Object getStaticFieldValueForClass(java.lang.String fieldName, java.lang.Class c, java.lang.Object defaultValue)
fieldName
- c
- defaultValue
- the value to be returned if actual value cannot be retrieved
for some reason
public static java.lang.Class[] getInterfaces(java.lang.Class c)
c
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |