@HashCodeAndEqualsPlugin.Enhance public static class FieldLocator.ForExactType extends FieldLocator.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldLocator.ForExactType.Factory
A factory for creating a
FieldLocator.ForExactType. |
FieldLocator.AbstractBase, FieldLocator.ForClassHierarchy, FieldLocator.ForExactType, FieldLocator.ForTopLevelType, FieldLocator.NoOp, FieldLocator.ResolutionaccessingType| Constructor and Description |
|---|
ForExactType(TypeDescription typeDescription)
Creates a new field locator for locating fields from a declared type.
|
ForExactType(TypeDescription typeDescription,
TypeDescription accessingType)
Creates a new field locator for locating fields from a declared type.
|
| Modifier and Type | Method and Description |
|---|---|
protected FieldList<?> |
locate(ElementMatcher<? super FieldDescription> matcher)
Locates fields that match the given matcher.
|
locate, locatepublic ForExactType(TypeDescription typeDescription)
typeDescription - The type for which to look up fields that is also providing the accessing type.public ForExactType(TypeDescription typeDescription, TypeDescription accessingType)
typeDescription - The type for which to look up fields.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–2019. All rights reserved.