Package net.bytebuddy.asm
Class Advice.OffsetMapping.ForField.Resolved
java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForField
net.bytebuddy.asm.Advice.OffsetMapping.ForField.Resolved
- All Implemented Interfaces:
Advice.OffsetMapping
- Enclosing class:
Advice.OffsetMapping.ForField
@Enhance
public static class Advice.OffsetMapping.ForField.Resolved
extends Advice.OffsetMapping.ForField
A binding for an offset mapping that represents a specific field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A factory that binds a field.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.ForDynamicConstant, Advice.OffsetMapping.ForEnterValue, Advice.OffsetMapping.ForExitValue, Advice.OffsetMapping.ForField, Advice.OffsetMapping.ForFieldHandle, Advice.OffsetMapping.ForHandle, Advice.OffsetMapping.ForInstrumentedMethod, Advice.OffsetMapping.ForInstrumentedType, Advice.OffsetMapping.ForLocalValue, Advice.OffsetMapping.ForOrigin, Advice.OffsetMapping.ForReturnValue, Advice.OffsetMapping.ForSelfCallHandle, 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 -
Constructor Summary
ConstructorsConstructorDescriptionResolved
(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, FieldDescription fieldDescription) Creates a resolved offset mapping for a field. -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldDescription
resolve
(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Resolves the field being bound.Methods inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField
resolve
-
Field Details
-
fieldDescription
The accessed field.
-
-
Constructor Details
-
Resolved
public Resolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, FieldDescription fieldDescription) Creates a resolved offset mapping for a field.- Parameters:
target
- The target type.readOnly
-true
if this mapping is read-only.typing
- The typing to apply.fieldDescription
- The accessed field.
-
-
Method Details
-
resolve
protected FieldDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod) Description copied from class:Advice.OffsetMapping.ForField
Resolves the field being bound.- Specified by:
resolve
in classAdvice.OffsetMapping.ForField
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- The field being bound.
-