Class MemberSubstitution.Substitution.ForValue

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.ForValue
All Implemented Interfaces:
MemberSubstitution.Substitution, MemberSubstitution.Substitution.Factory
Enclosing interface:
MemberSubstitution.Substitution

@Enhance public static class MemberSubstitution.Substitution.ForValue extends Object implements MemberSubstitution.Substitution, MemberSubstitution.Substitution.Factory
A substitution that loads a fixed value.
  • Field Details

    • stackManipulation

      private final StackManipulation stackManipulation
      The stack manipulation to load the value that represents the substitution.
    • typeDescription

      private final TypeDescription.Generic typeDescription
      The type of the represented stack manipulation.
  • Constructor Details

    • ForValue

      public ForValue(StackManipulation stackManipulation, TypeDescription.Generic typeDescription)
      Creates a new substitution for loading a constant value.
      Parameters:
      stackManipulation - The stack manipulation to load the value that represents the substitution.
      typeDescription - The type of the represented stack manipulation.
  • Method Details