|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jaulp.reflection.ReflectionUtils
public final class ReflectionUtils
The Class ReflectionUtils.
| Constructor Summary | |
|---|---|
ReflectionUtils()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
getFieldNames(java.lang.Class<?> cls)
Gets all fieldnames from the given class as an String array. |
static java.lang.String[] |
getMethodNames(java.lang.Class<?> cls)
Gets all methodnames from the given class as an String array. |
static java.util.Map<java.lang.String,java.lang.String> |
getMethodNamesWithPrefixFromFieldNames(java.util.List<java.lang.String> fieldNames,
java.lang.String prefix)
Generates a Map with the fieldName as key and the method as value. |
| 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 java.lang.String[] getMethodNames(java.lang.Class<?> cls)
cls - The class object to get the methodnames.
public static java.util.List<java.lang.String> getFieldNames(java.lang.Class<?> cls)
cls - The class object to get the fieldnames.
public static final java.util.Map<java.lang.String,java.lang.String> getMethodNamesWithPrefixFromFieldNames(java.util.List<java.lang.String> fieldNames,
java.lang.String prefix)
fieldNames - A list with the fieldNames.prefix - The prefix for the methodname.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||