public final class DeclaredMemberIndexer extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Constructor<T> |
getConstructorForIndex(int index,
Class<T> declaringClass) |
static List<Constructor<?>> |
getDeclaredConstructors(Class<?> declaringClass) |
static List<Field> |
getDeclaredFields(Class<?> declaringClass) |
static List<Method> |
getDeclaredMethods(Class<?> declaringClass) |
static Field |
getFieldForIndex(int index,
Class<?> declaringClass) |
static int |
getIndexForConstructor(Constructor<?> constructor) |
static int |
getIndexForField(Field field) |
static int |
getIndexForMethod(Method method) |
static Method |
getMethodForIndex(int index,
Class<?> declaringClass) |
public static int getIndexForField(Field field)
field
- public static Field getFieldForIndex(int index, Class<?> declaringClass)
index
- declaringClass
- IndexOutOfBoundsException
- if the index is out of rangepublic static int getIndexForMethod(Method method)
method
- public static Method getMethodForIndex(int index, Class<?> declaringClass)
index
- declaringClass
- IndexOutOfBoundsException
- if the index is out of rangepublic static int getIndexForConstructor(Constructor<?> constructor)
constructor
- public static <T> Constructor<T> getConstructorForIndex(int index, Class<T> declaringClass)
index
- declaringClass
- IndexOutOfBoundsException
- if the index is out of rangepublic static List<Field> getDeclaredFields(Class<?> declaringClass)
declaringClass
- public static List<Method> getDeclaredMethods(Class<?> declaringClass)
declaringClass
- public static List<Constructor<?>> getDeclaredConstructors(Class<?> declaringClass)
declaringClass
- Copyright © 2016. All rights reserved.