Package net.bytebuddy.implementation
Interface FieldAccessor.OwnerTypeLocatable
- All Superinterfaces:
FieldAccessor.AssignerConfigurable,FieldAccessor.PropertyConfigurable,Implementation,InstrumentedType.Prepareable
- All Known Implementing Classes:
FieldAccessor.ForImplicitProperty
- Enclosing class:
FieldAccessor
A field accessor that can be configured to locate a field in a specific manner.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetNested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp -
Method Summary
Modifier and TypeMethodDescriptionDetermines that a field should only be considered when it was defined in a given type.in(TypeDescription typeDescription) Determines that a field should only be considered when it was defined in a given type.in(FieldLocator.Factory fieldLocatorFactory) Determines that a field should only be considered when it was identified by a field locator that is produced by the given factory.Methods inherited from interface net.bytebuddy.implementation.FieldAccessor.AssignerConfigurable
withAssignerMethods inherited from interface net.bytebuddy.implementation.FieldAccessor.PropertyConfigurable
setsArgumentAt, setsDefaultValue, setsFieldValueOf, setsFieldValueOf, setsFieldValueOf, setsFieldValueOf, setsReference, setsReference, setsValue, setsValue, setsValue, setsValue, setsValue, setsValueMethods inherited from interface net.bytebuddy.implementation.Implementation
appenderMethods inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
prepare
-
Method Details
-
in
Determines that a field should only be considered when it was defined in a given type.- Parameters:
type- The type to be considered.- Returns:
- This field accessor which will only considered fields that are defined in the given type.
-
in
Determines that a field should only be considered when it was defined in a given type.- Parameters:
typeDescription- A description of the type to be considered.- Returns:
- This field accessor which will only considered fields that are defined in the given type.
-
in
Determines that a field should only be considered when it was identified by a field locator that is produced by the given factory.- Parameters:
fieldLocatorFactory- A factory that will produce a field locator that will be used to find locate a field to be accessed.- Returns:
- This field accessor which will only considered fields that are defined in the given type.
-