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 Classes Modifier and Type Class Description static class
Advice.OffsetMapping.ForField.Resolved.Factory<T extends java.lang.annotation.Annotation>
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.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 FieldDescription
fieldDescription
The accessed field.
-
Constructor Summary
Constructors Constructor Description Resolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, FieldDescription fieldDescription)
Creates a resolved offset mapping for a field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FieldDescription
resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves the field being bound.-
Methods inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForField
resolve
-
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription fieldDescription
The accessed field.
-
-
Constructor Detail
-
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 Detail
-
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.
-
-