public class ReflectUtilTest extends Object
ReflectUtil
.Modifier and Type | Class and Description |
---|---|
static class |
ReflectUtilTest.MyClass |
static class |
ReflectUtilTest.MySubClass |
Constructor and Description |
---|
ReflectUtilTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertFieldAnnotation(Class<?> type,
Map<Field,? extends Annotation> fieldAnnotation,
String... fieldNames) |
protected void |
assertGetAllDeclaredFields(Set<Field> fields,
String... fieldNames) |
protected void |
assertGetAllDeclaredMethods(Set<Method> methods,
String... methodNames) |
protected void |
assertMethodAnnotation(Class<?> type,
Map<Method,? extends Annotation> fieldAnnotation,
String... methodNames) |
void |
getAllDeclaredFields() |
void |
getAllDeclaredMethods() |
protected Field |
getField(String fieldName,
Set<Field> fields) |
void |
getFieldAnnotation() |
protected Method |
getMethod(String methodName,
Set<Method> methods) |
void |
getMethodAnnotation() |
public void getAllDeclaredFields() throws NoSuchFieldException
NoSuchFieldException
public void getAllDeclaredMethods() throws NoSuchFieldException
NoSuchFieldException
public void getFieldAnnotation() throws NoSuchFieldException
NoSuchFieldException
public void getMethodAnnotation() throws NoSuchMethodException
NoSuchMethodException
protected void assertGetAllDeclaredFields(Set<Field> fields, String... fieldNames)
protected void assertGetAllDeclaredMethods(Set<Method> methods, String... methodNames)
protected void assertFieldAnnotation(Class<?> type, Map<Field,? extends Annotation> fieldAnnotation, String... fieldNames)
protected void assertMethodAnnotation(Class<?> type, Map<Method,? extends Annotation> fieldAnnotation, String... methodNames)
Copyright © 2004–2020 CodeLutin. All rights reserved.