public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Field> |
getAllFields(Class<?> cl)
Return all fields of a given class
|
static String |
getGetter(Field field)
Get getter method name of given field
|
static String |
getterMethodName(String fieldName,
boolean isBoolean)
Get getter method name of given fieldName
|
static String |
setterMethodName(String fieldName,
boolean isBoolean)
Get setter method name of given fieldName
|
public static List<Field> getAllFields(Class<?> cl)
cl - the class to reflect to.public static String setterMethodName(String fieldName, boolean isBoolean)
fieldName - StringisBoolean - booleanpublic static String getterMethodName(String fieldName, boolean isBoolean)
fieldName - StringisBoolean - booleanCopyright © 2008–2016 JBoss.org. All rights reserved.