@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution extends Object implements MemberSubstitution.Substitution.Chain.Step<MemberSubstitution.Target>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution.Factory
A factory to create an argument substitution step.
|
MemberSubstitution.Substitution.Chain.Step.ForArgumentLoading, MemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitution, MemberSubstitution.Substitution.Chain.Step.ForAssignment, MemberSubstitution.Substitution.Chain.Step.ForDelegation, MemberSubstitution.Substitution.Chain.Step.ForField, MemberSubstitution.Substitution.Chain.Step.ForInvocation, MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression, MemberSubstitution.Substitution.Chain.Step.Resolution, MemberSubstitution.Substitution.Chain.Step.Simple| Modifier | Constructor and Description |
|---|---|
protected |
ForArgumentSubstitution(StackManipulation substitution,
TypeDescription.Generic typeDescription,
int index,
Assigner assigner,
Assigner.Typing typing)
Creates an argument substitution step.
|
| Modifier and Type | Method and Description |
|---|---|
static MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target> |
of(Object value,
int index)
Resolves a step substitution factory for a compile-time constant to replace an argument value at a given index.
|
MemberSubstitution.Substitution.Chain.Step.Resolution |
resolve(MemberSubstitution.Target target,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
TypeDescription.Generic current,
Map<Integer,Integer> offsets,
int freeOffset)
Resolves this step of a substitution chain.
|
protected ForArgumentSubstitution(StackManipulation substitution, TypeDescription.Generic typeDescription, int index, Assigner assigner, Assigner.Typing typing)
substitution - The stack manipulation that loads the substituted argument.typeDescription - The type of the substituted argument.index - The index of the argument to substitute.assigner - The assigner to use for assigning the argument.typing - The typing to use for the argument assignment.public static MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target> of(Object value, int index)
value - The compile-time constant to replace.index - The index of the substituted argument.public MemberSubstitution.Substitution.Chain.Step.Resolution resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, Map<Integer,Integer> offsets, int freeOffset)
resolve in interface MemberSubstitution.Substitution.Chain.Step<MemberSubstitution.Target>target - The target member of invokedynamic invocation.parameters - The parameters of the substituted element.result - The resulting type of the substituted element.methodHandle - A method handle of the stackManipulation invocation that is being substituted.stackManipulation - The byte code instruction that is being substituted.current - The current type of the applied substitution that is the top element on the operand stack.offsets - The arguments of the substituted byte code element mapped to their local variable offsets.freeOffset - The first free offset in the local variable array.Copyright © 2014–2025. All rights reserved.