|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.commons.misc.ReflectionUtils
public class ReflectionUtils
| Constructor Summary | |
|---|---|
ReflectionUtils()
|
|
| Method Summary | |
|---|---|
static List<Field> |
getClassFields(Class clazz,
Class type,
boolean isStatic,
String[] fieldsToIgnore)
|
static List<Field> |
getClassHierarchyFields(Class clazz,
Class fieldType,
boolean isStatic,
String[] fieldsToIgnore)
|
static Class[] |
getClassHierarchyInterfaces(Class clazz)
|
static String |
getGetMethodName(String fieldName)
Generates the name of a get method for the given field name. |
static Object |
getPrivateField(Object o,
String fieldName)
|
static String |
getSetMethodName(String fieldName)
Generates the name of a create method for the given field name. |
static Object |
invokePrivateMethod(Object o,
String methodName,
Object[] params)
|
static boolean |
isGetMethod(Method method)
Checks if the given method is a get method. |
static boolean |
isIsMethod(Method method)
Checks if the given method is a 'is' method. |
static boolean |
isSetMethod(Method method)
Checks if the given method is a set method. |
static void |
main(String[] args)
|
| 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 Object getPrivateField(Object o,
String fieldName)
public static Object invokePrivateMethod(Object o,
String methodName,
Object[] params)
public static List<Field> getClassHierarchyFields(Class clazz,
Class fieldType,
boolean isStatic,
String[] fieldsToIgnore)
public static List<Field> getClassFields(Class clazz,
Class type,
boolean isStatic,
String[] fieldsToIgnore)
public static Class[] getClassHierarchyInterfaces(Class clazz)
public static final String getGetMethodName(String fieldName)
fieldName - the field name to generate a method name for
public static final String getSetMethodName(String fieldName)
fieldName - the field name to generate a method name for
public static final boolean isSetMethod(Method method)
method - the Method to check
public static final boolean isGetMethod(Method method)
method - the Method to check
public static final boolean isIsMethod(Method method)
method - the Method to check
public static void main(String[] args)
|
Dashboard Builder Commons 6.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||