@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference extends Object implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping
this reference.| Modifier and Type | Class and Description |
|---|---|
protected static class |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Factory
A factory for creating an offset mapping for binding a
MemberSubstitution.This reference. |
protected static class |
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved
A resolved offset mapping for resolving the
this reference. |
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.ForField, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle, 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| Constructor and Description |
|---|
ForThisReference(TypeDescription.Generic targetType,
Assigner.Typing typing,
MemberSubstitution.Source source,
boolean optional)
Creates an offset mapping that resolves the
this reference. |
| Modifier and Type | Method and Description |
|---|---|
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved |
resolve(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Resolves an offset mapping for a given instrumented method.
|
public ForThisReference(TypeDescription.Generic targetType, @MaybeNull Assigner.Typing typing, MemberSubstitution.Source source, boolean optional)
this reference.targetType - The targeted type.typing - The typing to use or null if implicit typing.source - The source providing the reference.optional - true if null or a primitive 0 should be assigned
to the parameter if no this reference is available.public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForThisReference.Resolved resolve(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
resolve in interface MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMappingassigner - The assigner to use.typing - The typing to use if no explicit typing is specified.instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.Copyright © 2014–2023. All rights reserved.