Class MemberSubstitution.Substitution.Chain.Step.ForField.Read
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField.Read
- 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.Read
extends MemberSubstitution.Substitution.Chain.Step.ForField
A step for reading a field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA factory for creating a field read step in a chain.Nested classes/interfaces inherited from class MemberSubstitution.Substitution.Chain.Step.ForField
MemberSubstitution.Substitution.Chain.Step.ForField.Read, MemberSubstitution.Substitution.Chain.Step.ForField.WriteNested classes/interfaces inherited from interface 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 inherited from class MemberSubstitution.Substitution.Chain.Step.ForField
assigner, fieldDescription, typing -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRead(FieldDescription fieldDescription, Assigner assigner, Assigner.Typing typing) Creates a step for reading a field. -
Method Summary
Modifier and TypeMethodDescriptiondoResolve(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, Integer> offsets, StackManipulation stackManipulation) Completes the resolution.Methods inherited from class MemberSubstitution.Substitution.Chain.Step.ForField
resolve
-
Constructor Details
-
Read
Creates a step for reading a field.- Parameters:
fieldDescription- A description of the field being read.assigner- The assigner to use.typing- The typing to use when assigning.
-
-
Method Details
-
doResolve
protected MemberSubstitution.Substitution.Chain.Step.Resolution doResolve(MemberSubstitution.Target target, TypeList.Generic parameters, Map<Integer, 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.
-