public abstract class Fields extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Fields.InstanceFields |
| Constructor and Description |
|---|
Fields() |
| Modifier and Type | Method and Description |
|---|---|
static Fields.InstanceFields |
allDeclaredFieldsOf(Object instance)
Instance fields declared in the class and superclasses of the given instance.
|
static ListUtil.Filter<InstanceField> |
annotatedBy(Class<? extends Annotation>... annotations)
Accept fields annotated by the given annotations.
|
static Fields.InstanceFields |
declaredFieldsOf(Object instance)
Instance fields declared in the class of the given instance.
|
public static Fields.InstanceFields allDeclaredFieldsOf(Object instance)
instance - Instance from which declared fields will be retrieved.public static Fields.InstanceFields declaredFieldsOf(Object instance)
instance - Instance from which declared fields will be retrieved.public static ListUtil.Filter<InstanceField> annotatedBy(Class<? extends Annotation>... annotations)
annotations - Annotation types to check.Mockito, MIT License