@Incubating public abstract class Fields extends java.lang.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(java.lang.Object instance)
Instance fields declared in the class and superclasses of the given instance.
|
static ListUtil.Filter<InstanceField> |
annotatedBy(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Accept fields annotated by the given annotations.
|
static Fields.InstanceFields |
declaredFieldsOf(java.lang.Object instance)
Instance fields declared in the class of the given instance.
|
public static Fields.InstanceFields allDeclaredFieldsOf(java.lang.Object instance)
instance
- Instance from which declared fields will be retrieved.public static Fields.InstanceFields declaredFieldsOf(java.lang.Object instance)
instance
- Instance from which declared fields will be retrieved.public static ListUtil.Filter<InstanceField> annotatedBy(java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
annotations
- Annotation types to check.