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
public static interface FieldAccessor.OwnerTypeLocatable extends FieldAccessor.AssignerConfigurable
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.Target
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldAccessor.AssignerConfigurable
in(java.lang.Class<?> type)
Determines that a field should only be considered when it was defined in a given type.FieldAccessor.AssignerConfigurable
in(TypeDescription typeDescription)
Determines that a field should only be considered when it was defined in a given type.FieldAccessor.AssignerConfigurable
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
withAssigner
-
Methods inherited from interface net.bytebuddy.implementation.FieldAccessor.PropertyConfigurable
setsArgumentAt, setsDefaultValue, setsFieldValueOf, setsFieldValueOf, setsFieldValueOf, setsFieldValueOf, setsReference, setsReference, setsValue, setsValue, setsValue, setsValue, setsValue
-
Methods inherited from interface net.bytebuddy.implementation.Implementation
appender
-
Methods inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
prepare
-
-
-
-
Method Detail
-
in
FieldAccessor.AssignerConfigurable in(java.lang.Class<?> type)
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
FieldAccessor.AssignerConfigurable in(TypeDescription typeDescription)
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
FieldAccessor.AssignerConfigurable 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.- 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.
-
-