Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
- Enclosing interface:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle extends java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
An offset mapping that resolves a method handle.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory
A factory to create an offset mapping for a method handle.-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForArgument, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForCurrent, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForDynamicConstant, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForField, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForOrigin, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForSelfCallHandle, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStackManipulation, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
The name of the method handle.private TypeDescription
owner
The owner of the handle, orvoid
for the instrumented type.private java.util.List<? extends TypeDescription>
parameterTypes
The parameter types required by the handle.private TypeDescription
returnType
The type that is returned from the handle.private JavaConstant.MethodHandle.HandleType
type
The type of the method handle.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForHandle(JavaConstant.MethodHandle.HandleType type, TypeDescription owner, java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates an offset mapping for a method handle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved
resolve(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
-
-
-
Field Detail
-
type
private final JavaConstant.MethodHandle.HandleType type
The type of the method handle.
-
owner
private final TypeDescription owner
The owner of the handle, orvoid
for the instrumented type.
-
name
private final java.lang.String name
The name of the method handle.
-
returnType
private final TypeDescription returnType
The type that is returned from the handle.
-
parameterTypes
private final java.util.List<? extends TypeDescription> parameterTypes
The parameter types required by the handle.
-
-
Constructor Detail
-
ForHandle
protected ForHandle(JavaConstant.MethodHandle.HandleType type, TypeDescription owner, java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates an offset mapping for a method handle.- Parameters:
type
- The type of the method handle.owner
- The owner of the handle, orvoid
for the instrumented type.name
- The name of the method handle.returnType
- The type that is returned from the handle.parameterTypes
- The parameter types required by the handle.
-
-
Method Detail
-
resolve
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved resolve(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.- Specified by:
resolve
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
- Parameters:
assigner
- The assigner to use.typing
- The typing to use if no explicit typing is specified.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- A resolved version of this offset mapping.
-
-