Package net.bytebuddy.asm
Class Advice.OffsetMapping.ForArgument.Resolved
java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForArgument
net.bytebuddy.asm.Advice.OffsetMapping.ForArgument.Resolved
- All Implemented Interfaces:
Advice.OffsetMapping
- Enclosing class:
Advice.OffsetMapping.ForArgument
@Enhance
public static class Advice.OffsetMapping.ForArgument.Resolved
extends Advice.OffsetMapping.ForArgument
An offset mapping for a specific parameter of the instrumented method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A factory for a parameter argument of the instrumented method.Nested classes/interfaces inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForArgument
Advice.OffsetMapping.ForArgument.Resolved, Advice.OffsetMapping.ForArgument.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
FieldsFields inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForArgument
readOnly, target
-
Constructor Summary
ConstructorsConstructorDescriptionResolved
(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, ParameterDescription parameterDescription) Creates an offset mapping that binds a parameter of the instrumented method. -
Method Summary
Modifier and TypeMethodDescriptionprotected ParameterDescription
resolve
(MethodDescription instrumentedMethod) Resolves the bound parameter.Methods inherited from class net.bytebuddy.asm.Advice.OffsetMapping.ForArgument
resolve
-
Field Details
-
parameterDescription
The parameter being bound.
-
-
Constructor Details
-
Resolved
public Resolved(TypeDescription.Generic target, boolean readOnly, Assigner.Typing typing, ParameterDescription parameterDescription) Creates an offset mapping that binds a parameter of the instrumented method.- Parameters:
target
- The type expected by the advice method.readOnly
- Determines if the parameter is to be treated as read-only.typing
- The typing to apply.parameterDescription
- The parameter being bound.
-
-
Method Details
-
resolve
Description copied from class:Advice.OffsetMapping.ForArgument
Resolves the bound parameter.- Specified by:
resolve
in classAdvice.OffsetMapping.ForArgument
- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- The bound parameter.
-