|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.reflection.ReflectionUtils
public class ReflectionUtils
Helper for Java Reflection.
| Constructor Summary | |
|---|---|
ReflectionUtils()
|
|
| Method Summary | |
|---|---|
static int |
determineDeclaredFieldIndexPosition(Class<?> clazz,
Field field)
Determines the index position of a declared Field within a given Class. |
static int |
determineDeclaredFieldIndexPosition(Class<?> clazz,
String fieldname)
Determines the index position of a declared Field within a given Class. |
static int |
determineDeclaredMethodIndexPosition(Class<?> clazz,
Method method)
Determines the index position of a declared Method within a given Class. |
static int |
determineNumberOfDeclaredFields(Class<?> clazz)
Returns the number of declared Fields of a Class. |
static int |
determineNumberOfDeclaredMethods(Class<?> clazz)
Returns the number of declared Methods of a Class. |
| 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 int determineDeclaredMethodIndexPosition(Class<?> clazz,
Method method)
Method within a given Class.
clazz - method -
public static int determineDeclaredFieldIndexPosition(Class<?> clazz,
Field field)
Field within a given Class.
clazz - field -
public static int determineDeclaredFieldIndexPosition(Class<?> clazz,
String fieldname)
Field within a given Class.
clazz - field -
Field could not be determined at all.public static int determineNumberOfDeclaredFields(Class<?> clazz)
Fields of a Class.
clazz -
Fields or 0 if clazz == nullpublic static int determineNumberOfDeclaredMethods(Class<?> clazz)
Methods of a Class.
clazz -
Methods or 0 if clazz == null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||