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 Implementation
Implementation.Composable, Implementation.Compound, Implementation.Context, Implementation.Simple, Implementation.SpecialMethodInvocation, Implementation.TargetNested classes/interfaces inherited from interface 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 FieldAccessor.AssignerConfigurable
withAssignerMethods inherited from interface FieldAccessor.PropertyConfigurable
setsArgumentAt, setsDefaultValue, setsFieldValueOf, setsFieldValueOf, setsFieldValueOf, setsFieldValueOf, setsReference, setsReference, setsValue, setsValue, setsValue, setsValue, setsValue, setsValueMethods inherited from interface Implementation
appenderMethods inherited from interface 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.
-