Class Advice.OffsetMapping.ForStackManipulation.Factory<T extends Annotation>

java.lang.Object
net.bytebuddy.asm.Advice.OffsetMapping.ForStackManipulation.Factory<T>
Type Parameters:
T - The annotation type this factory binds.
All Implemented Interfaces:
Advice.OffsetMapping.Factory<T>
Enclosing class:
Advice.OffsetMapping.ForStackManipulation

@Enhance public static class Advice.OffsetMapping.ForStackManipulation.Factory<T extends Annotation> extends Object implements Advice.OffsetMapping.Factory<T>
A factory that binds a stack manipulation.
  • Field Details

    • annotationType

      private final Class<T extends Annotation> annotationType
      The annotation type.
    • stackManipulation

      private final StackManipulation stackManipulation
      The stack manipulation that loads the bound value.
    • typeDescription

      private final TypeDescription.Generic typeDescription
      The type of the loaded value.
  • Constructor Details

    • Factory

      public Factory(Class<T> annotationType, TypeDescription typeDescription)
      Creates a new factory for binding a type description.
      Parameters:
      annotationType - The annotation type.
      typeDescription - The type to bind.
    • Factory

      public Factory(Class<T> annotationType, EnumerationDescription enumerationDescription)
      Creates a new factory for binding an enumeration.
      Parameters:
      annotationType - The annotation type.
      enumerationDescription - The enumeration to bind.
    • Factory

      public Factory(Class<T> annotationType, StackManipulation stackManipulation, TypeDescription.Generic typeDescription)
      Creates a new factory for binding a stack manipulation.
      Parameters:
      annotationType - The annotation type.
      stackManipulation - The stack manipulation that loads the bound value.
      typeDescription - The type of the loaded value.
  • Method Details