S - The type of the matched target.@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain<S extends MemberSubstitution.Target> extends Object implements MemberSubstitution.Substitution<S>
| Modifier and Type | Class and Description |
|---|---|
static class |
MemberSubstitution.Substitution.Chain.Factory<U extends MemberSubstitution.Target>
A factory for creating a substitution chain.
|
static interface |
MemberSubstitution.Substitution.Chain.Step<U extends MemberSubstitution.Target>
Represents a step of a substitution chain.
|
MemberSubstitution.Substitution.Chain<S extends MemberSubstitution.Target>, MemberSubstitution.Substitution.ForFieldAccess, MemberSubstitution.Substitution.ForMethodInvocation, MemberSubstitution.Substitution.ForValue, MemberSubstitution.Substitution.Stubbing| Modifier | Constructor and Description |
|---|---|
protected |
Chain(Assigner assigner,
Assigner.Typing typing,
List<MemberSubstitution.Substitution.Chain.Step<? super S>> steps)
Creates a new substitution chain.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation |
resolve(S target,
TypeList.Generic parameters,
TypeDescription.Generic result,
JavaConstant.MethodHandle methodHandle,
StackManipulation stackManipulation,
int freeOffset)
Resolves this substitution into a stack manipulation.
|
static <U extends MemberSubstitution.Target> |
with(Assigner assigner,
Assigner.Typing typing)
Creates a new substitution chain.
|
static <U extends MemberSubstitution.Target> |
withDefaultAssigner()
Creates a new substitution chain that uses a default assigner and static typing.
|
protected Chain(Assigner assigner, Assigner.Typing typing, List<MemberSubstitution.Substitution.Chain.Step<? super S>> steps)
assigner - The assigner to use.typing - The typing of the assignment to use.steps - The substitution steps to apply.public static <U extends MemberSubstitution.Target> MemberSubstitution.Substitution.Chain.Factory<U> withDefaultAssigner()
U - The type of the matched target.public static <U extends MemberSubstitution.Target> MemberSubstitution.Substitution.Chain.Factory<U> with(Assigner assigner, Assigner.Typing typing)
U - The type of the matched target.assigner - The assigner to use.typing - The typing of the assignment to use.public StackManipulation resolve(S target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, int freeOffset)
resolve in interface MemberSubstitution.Substitution<S extends MemberSubstitution.Target>target - The targeted member that is substituted.parameters - All parameters that serve as input to this access.result - The result that is expected from the interaction or void if no result is expected.methodHandle - A method handle describing the substituted expression.stackManipulation - The original byte code expression that is being executed.freeOffset - The first free offset of the local variable array that can be used for storing values.Copyright © 2014–2025. All rights reserved.