public class ClassReflector extends Object
| Constructor and Description |
|---|
ClassReflector(Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createInstance() |
List<Field> |
getAnnotatedInstanceFields(Class<? extends Annotation> annotation) |
List<Field> |
getAnnotatedStaticFields(Class<? extends Annotation> annotation) |
Method |
getConfiguratorMethod() |
static List<Field> |
getFieldsByType(Class<?> clazz,
Object daoObject) |
Class<?> |
getJavaClass() |
net.vidageek.mirror.list.dsl.MirrorList<Method> |
getMethodsAnnotedWith(Class<Configurator> annotation) |
net.vidageek.mirror.list.dsl.MirrorList<Method> |
getMethodsMatching(net.vidageek.mirror.list.dsl.Matcher<Method> matcher) |
static void |
injectOn(Field field,
Object instance,
Object value) |
static void |
injectStaticOn(Field field,
Class<?> clazz,
Object value) |
Object |
invokeStatic(Method method) |
static Object |
newInstanceOf(Field field) |
public ClassReflector(Class<?> clazz)
public Class<?> getJavaClass()
public List<Field> getAnnotatedInstanceFields(Class<? extends Annotation> annotation)
public List<Field> getAnnotatedStaticFields(Class<? extends Annotation> annotation)
public net.vidageek.mirror.list.dsl.MirrorList<Method> getMethodsMatching(net.vidageek.mirror.list.dsl.Matcher<Method> matcher)
public net.vidageek.mirror.list.dsl.MirrorList<Method> getMethodsAnnotedWith(Class<Configurator> annotation)
public Method getConfiguratorMethod()
public static List<Field> getFieldsByType(Class<?> clazz, Object daoObject) throws IllegalAccessException
IllegalAccessExceptionpublic static void injectOn(Field field, Object instance, Object value) throws IllegalArgumentException, IllegalAccessException
public static Object newInstanceOf(Field field) throws InstantiationException, IllegalAccessException
public Object createInstance() throws InstantiationException, IllegalAccessException
Copyright © 2018. All rights reserved.