Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForField.Write
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField.Write
-
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step<MemberSubstitution.Target>
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForField
@Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForField.Write extends MemberSubstitution.Substitution.Chain.Step.ForField
A step for writing to a field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMemberSubstitution.Substitution.Chain.Step.ForField.Write.FactoryA factory for creating a step to write to a field.-
Nested classes/interfaces inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
MemberSubstitution.Substitution.Chain.Step.ForField.Read, MemberSubstitution.Substitution.Chain.Step.ForField.Write
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.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
-
-
Field Summary
Fields Modifier and Type Field Description private intindexThe index of the parameter being accessed.-
Fields inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
assigner, fieldDescription, typing
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWrite(FieldDescription fieldDescription, Assigner assigner, Assigner.Typing typing, int index)Creates a step for writing to a field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MemberSubstitution.Substitution.Chain.Step.ResolutiondoResolve(MemberSubstitution.Target target, TypeList.Generic parameters, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, StackManipulation stackManipulation)Completes the resolution.-
Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
resolve
-
-
-
-
Constructor Detail
-
Write
protected Write(FieldDescription fieldDescription, Assigner assigner, Assigner.Typing typing, int index)
Creates a step for writing to a field.- Parameters:
fieldDescription- A description of the field to write to.assigner- The assigner to use.typing- The typing to use when assigning.index- The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.
-
-
Method Detail
-
doResolve
protected MemberSubstitution.Substitution.Chain.Step.Resolution doResolve(MemberSubstitution.Target target, TypeList.Generic parameters, java.util.Map<java.lang.Integer,java.lang.Integer> offsets, StackManipulation stackManipulation)
Completes the resolution.- Specified by:
doResolvein classMemberSubstitution.Substitution.Chain.Step.ForField- Parameters:
target- The target member of invokedynamic invocation.parameters- The parameters of the substituted element.offsets- The arguments of the substituted byte code element mapped to their local variable offsets.stackManipulation- A stack manipulation to prepare the field access.- Returns:
- A resolved substitution step for the supplied inputs.
-
-