Package net.bytebuddy.asm
Class Advice.OffsetMapping.ForFieldHandle.Resolved
- java.lang.Object
-
- net.bytebuddy.asm.Advice.OffsetMapping.ForFieldHandle
-
- net.bytebuddy.asm.Advice.OffsetMapping.ForFieldHandle.Resolved
-
- All Implemented Interfaces:
Advice.OffsetMapping
- Enclosing class:
- Advice.OffsetMapping.ForFieldHandle
@Enhance public static class Advice.OffsetMapping.ForFieldHandle.Resolved extends Advice.OffsetMapping.ForFieldHandle
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.ForFieldHandle.Resolved.Factory<T extends java.lang.annotation.Annotation>
A factory that binds a field handle.-
Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForFieldHandle
Advice.OffsetMapping.ForFieldHandle.Access, Advice.OffsetMapping.ForFieldHandle.Resolved, Advice.OffsetMapping.ForFieldHandle.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 Modifier and Type Field Description private FieldDescription
fieldDescription
The accessed field.
-
Constructor Summary
Constructors Constructor Description Resolved(Advice.OffsetMapping.ForFieldHandle.Access access, FieldDescription fieldDescription)
Creates a resolved offset mapping for a field handle.
-
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.ForFieldHandle
resolve
-
-
-
-
Field Detail
-
fieldDescription
private final FieldDescription fieldDescription
The accessed field.
-
-
Constructor Detail
-
Resolved
public Resolved(Advice.OffsetMapping.ForFieldHandle.Access access, FieldDescription fieldDescription)
Creates a resolved offset mapping for a field handle.- Parameters:
access
- The access type of the represented handle.fieldDescription
- The accessed field.
-
-
Method Detail
-
resolve
protected FieldDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Description copied from class:Advice.OffsetMapping.ForFieldHandle
Resolves the field being bound.- Specified by:
resolve
in classAdvice.OffsetMapping.ForFieldHandle
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- The field being bound.
-
-