public class ReflectionUtils extends Object
| Constructor and Description |
|---|
ReflectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Field> |
getAllAnnotatedFields(Class<?> type,
Class... annotations)
Finds all fields with at least one of the specified annotations.
|
static List<Field> |
getAllFields(Class<?> type)
Retrieves all fields of a class.
|
static Set<Class<?>> |
getPrimitiveWrapperTypes() |
public static List<Field> getAllFields(Class<?> type)
type - class to scanpublic static List<Field> getAllAnnotatedFields(Class<?> type, Class... annotations)
type - clazz to scanannotations - list of annotationsCopyright © 2020. All rights reserved.