Package net.bytebuddy.asm
Interface MemberSubstitution.Substitution.Chain.Step<U extends MemberSubstitution.Target>
-
- Type Parameters:
U- The type of the matched target.
- All Known Implementing Classes:
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.ForField.Read,MemberSubstitution.Substitution.Chain.Step.ForField.Write,MemberSubstitution.Substitution.Chain.Step.ForInvocation,MemberSubstitution.Substitution.Chain.Step.OfOriginalExpression,MemberSubstitution.Substitution.Chain.Step.Simple
- Enclosing class:
- MemberSubstitution.Substitution.Chain<S extends MemberSubstitution.Target>
public static interface MemberSubstitution.Substitution.Chain.Step<U extends MemberSubstitution.Target>Represents a step of a substitution chain.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMemberSubstitution.Substitution.Chain.Step.Factory<V extends MemberSubstitution.Target>Resolves a substitution for an instrumented method.static classMemberSubstitution.Substitution.Chain.Step.ForArgumentLoadingA step that loads an argument to a method as the current chain value.static classMemberSubstitution.Substitution.Chain.Step.ForArgumentSubstitutionA step that substitutes an argument of a given index with a compatible type.static classMemberSubstitution.Substitution.Chain.Step.ForAssignmentA step within a substitution chain that converts the current type to another type by casting.static classMemberSubstitution.Substitution.Chain.Step.ForDelegationA step that invokes a delegation method based on annotations on the parameters of the targeted method.static classMemberSubstitution.Substitution.Chain.Step.ForFieldCreates a step for a field access.static classMemberSubstitution.Substitution.Chain.Step.ForInvocationA step for invoking a method or constructor.static classMemberSubstitution.Substitution.Chain.Step.OfOriginalExpressionA step that executes the original method invocation or field access.static interfaceMemberSubstitution.Substitution.Chain.Step.ResolutionA resolved substitution step.static classMemberSubstitution.Substitution.Chain.Step.SimpleA simple substitution step within a substitution chain.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step.Resolutionresolve(U target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, int freeOffset)Resolves this step of a substitution chain.
-
-
-
Method Detail
-
resolve
MemberSubstitution.Substitution.Chain.Step.Resolution resolve(U target, TypeList.Generic parameters, TypeDescription.Generic result, JavaConstant.MethodHandle methodHandle, StackManipulation stackManipulation, TypeDescription.Generic current, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, int freeOffset)
Resolves this step of a substitution chain.- Parameters:
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.- Returns:
- A resolved substitution step for the supplied inputs.
-
-