Package net.bytebuddy.asm
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 Classes Modifier and Type Class Description static class
MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory
A factory for creating a field read step in a chain.-
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 inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
assigner, fieldDescription, typing
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Read(FieldDescription fieldDescription, Assigner assigner, Assigner.Typing typing)
Creates a step for reading a field.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField
resolve
-
-
-
-
Constructor Detail
-
Read
protected Read(FieldDescription fieldDescription, Assigner assigner, Assigner.Typing typing)
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 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:
doResolve
in 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.
-
-