Package net.bytebuddy.asm
Class Advice.OffsetMapping.ForField.Unresolved
- java.lang.Object
-
- net.bytebuddy.asm.Advice.OffsetMapping.ForField
-
- net.bytebuddy.asm.Advice.OffsetMapping.ForField.Unresolved
-
- All Implemented Interfaces:
Advice.OffsetMapping
- Direct Known Subclasses:
Advice.OffsetMapping.ForField.Unresolved.WithExplicitType
,Advice.OffsetMapping.ForField.Unresolved.WithImplicitType
- Enclosing class:
- Advice.OffsetMapping.ForField
@Enhance public abstract static class Advice.OffsetMapping.ForField.Unresolved extends Advice.OffsetMapping.ForField
An offset mapping for a field that is resolved from the instrumented type by its name.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
Advice.OffsetMapping.ForField.Unresolved.Factory
A factory for aAdvice.OffsetMapping.ForField.Unresolved
offset mapping.static class
Advice.OffsetMapping.ForField.Unresolved.WithExplicitType
An offset mapping for a field with an explicit declaring type.static class
Advice.OffsetMapping.ForField.Unresolved.WithImplicitType
An offset mapping for a field with an implicit declaring type.-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField
Advice.OffsetMapping.ForField.Resolved, Advice.OffsetMapping.ForField.Unresolved
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.OffsetMapping
Advice.OffsetMapping.ForAllArguments, Advice.OffsetMapping.ForArgument, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForLocalValue, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSerializedValue, Advice.OffsetMapping.ForStackManipulation, Advice.OffsetMapping.ForStubValue, Advice.OffsetMapping.ForThisReference, Advice.OffsetMapping.ForThrowable, Advice.OffsetMapping.ForUnusedValue, Advice.OffsetMapping.Sort, Advice.OffsetMapping.Target
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
The name of the field.
-
Constructor Summary
Constructors Constructor Description Unresolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, java.lang.String name)
Creates an offset mapping for a field that is not yet resolved.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract FieldLocator
fieldLocator(TypeDescription instrumentedType)
Returns a field locator for this instance.protected FieldDescription
resolve(TypeDescription instrumentedType)
Resolves the field being bound.-
Methods inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField
resolve
-
-
-
-
Constructor Detail
-
Unresolved
public Unresolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, java.lang.String name)
Creates an offset mapping for a field that is not yet resolved.- Parameters:
target
- The target type.readOnly
-true
if this mapping is read-only.typing
- The typing to apply.name
- The name of the field.
-
-
Method Detail
-
resolve
protected FieldDescription resolve(TypeDescription instrumentedType)
Description copied from class:Advice.OffsetMapping.ForField
Resolves the field being bound.- Specified by:
resolve
in classAdvice.OffsetMapping.ForField
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- The field being bound.
-
fieldLocator
protected abstract FieldLocator fieldLocator(TypeDescription instrumentedType)
Returns a field locator for this instance.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- An appropriate field locator.
-
-