@HashCodeAndEqualsPlugin.Enhance public static class FieldLocator.ForClassHierarchy extends FieldLocator.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldLocator.ForClassHierarchy.Factory
A factory for creating a
FieldLocator.ForClassHierarchy. |
FieldLocator.AbstractBase, FieldLocator.ForClassHierarchy, FieldLocator.ForExactType, FieldLocator.ForTopLevelType, FieldLocator.NoOp, FieldLocator.ResolutionaccessingType| Constructor and Description |
|---|
ForClassHierarchy(TypeDescription typeDescription)
Creates a field locator that looks up fields that are declared within a class's class hierarchy.
|
ForClassHierarchy(TypeDescription typeDescription,
TypeDescription accessingType)
Creates a field locator that looks up fields that are declared within a class's class hierarchy.
|
| Modifier and Type | Method and Description |
|---|---|
protected FieldList<?> |
locate(ElementMatcher<? super FieldDescription> matcher)
Locates fields that match the given matcher.
|
locate, locatepublic ForClassHierarchy(TypeDescription typeDescription)
typeDescription - The type for which to look up a field within its class hierarchy which is also the accessing type.public ForClassHierarchy(TypeDescription typeDescription, TypeDescription accessingType)
typeDescription - The type for which to look up a field within its class hierarchy.accessingType - The accessing type.protected FieldList<?> locate(ElementMatcher<? super FieldDescription> matcher)
FieldLocator.AbstractBaselocate in class FieldLocator.AbstractBasematcher - The matcher that identifies fields of interest.Copyright © 2014–2023. All rights reserved.