Package net.bytebuddy.dynamic.scaffold
Class FieldLocator.ForTopLevelType
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.FieldLocator.AbstractBase
-
- net.bytebuddy.dynamic.scaffold.FieldLocator.ForTopLevelType
-
- All Implemented Interfaces:
FieldLocator
- Enclosing interface:
- FieldLocator
public static class FieldLocator.ForTopLevelType extends FieldLocator.AbstractBase
A field locator that only locates fields in the top-level type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FieldLocator.ForTopLevelType.Factory
A factory for locating a field in a top-level type.-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.FieldLocator
FieldLocator.AbstractBase, FieldLocator.ForClassHierarchy, FieldLocator.ForExactType, FieldLocator.ForTopLevelType, FieldLocator.NoOp, FieldLocator.Resolution
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.dynamic.scaffold.FieldLocator.AbstractBase
accessingType
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForTopLevelType(TypeDescription typeDescription)
Creates a new type locator for a top-level type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldList<?>
locate(ElementMatcher<? super FieldDescription> matcher)
Locates fields that match the given matcher.-
Methods inherited from class net.bytebuddy.dynamic.scaffold.FieldLocator.AbstractBase
locate, locate
-
-
-
-
Constructor Detail
-
ForTopLevelType
protected ForTopLevelType(TypeDescription typeDescription)
Creates a new type locator for a top-level type.- Parameters:
typeDescription
- The type to access.
-
-
Method Detail
-
locate
protected FieldList<?> locate(ElementMatcher<? super FieldDescription> matcher)
Description copied from class:FieldLocator.AbstractBase
Locates fields that match the given matcher.- Specified by:
locate
in classFieldLocator.AbstractBase
- Parameters:
matcher
- The matcher that identifies fields of interest.- Returns:
- A list of fields that match the specified matcher.
-
-