Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference
@Enhance protected static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved extends java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved
A resolved offset mapping for resolving thethisreference.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved.ForStackManipulation
-
-
Field Summary
Fields Modifier and Type Field Description private AssignerassignerThe assigner to use.private MethodDescriptioninstrumentedMethodThe instrumented method.private booleanoptionaltrueifnullor a primitive0should be assigned to the parameter if nothisreference is available.private MemberSubstitution.SourcesourceThe source providing the reference.private TypeDescription.GenerictargetTypeThe targeted type.private Assigner.TypingtypingThe typing to use..
-
Constructor Summary
Constructors Modifier Constructor Description protectedResolved(TypeDescription.Generic targetType, Assigner.Typing typing, MemberSubstitution.Source source, boolean optional, Assigner assigner, MethodDescription instrumentedMethod)Creates a resolved offset mapping for assigning thethisreference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackManipulationapply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, int offset)Applies this offset mapping.
-
-
-
Field Detail
-
targetType
private final TypeDescription.Generic targetType
The targeted type.
-
typing
private final Assigner.Typing typing
The typing to use..
-
source
private final MemberSubstitution.Source source
The source providing the reference.
-
optional
private final boolean optional
trueifnullor a primitive0should be assigned to the parameter if nothisreference is available.
-
assigner
private final Assigner assigner
The assigner to use.
-
instrumentedMethod
private final MethodDescription instrumentedMethod
The instrumented method.
-
-
Constructor Detail
-
Resolved
protected Resolved(TypeDescription.Generic targetType, Assigner.Typing typing, MemberSubstitution.Source source, boolean optional, Assigner assigner, MethodDescription instrumentedMethod)
Creates a resolved offset mapping for assigning thethisreference.- Parameters:
targetType- The targeted type.typing- The typing to use.source- The source providing the reference.optional-trueifnullor a primitive0should be assigned to the parameter if nothisreference is available.assigner- The assigner to use.instrumentedMethod- The instrumented method.
-
-
Method Detail
-
apply
public StackManipulation apply(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, TypeDescription.Generic current, JavaConstant.MethodHandle methodHandle, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, int offset)
Applies this offset mapping.- Specified by:
applyin interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Resolved- Parameters:
target- The target member of invokedynamic invocation.parameters- The parameters that are supplied to the substituted expression.result- The resulting type of the substituted expression.current- The type of the value that was produced by the previous step in the substitution chain.methodHandle- A method handle that represents the substituted element.offsets- The offsets of the supplied parameters.offset- The offset of the value that was produced by the previous step.- Returns:
- An appropriate stack manipulation.
-
-