Class Advice.Dispatcher.RelocationHandler.ForType

java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.ForType
All Implemented Interfaces:
Advice.Dispatcher.RelocationHandler
Enclosing interface:
Advice.Dispatcher.RelocationHandler

@Enhance public static class Advice.Dispatcher.RelocationHandler.ForType extends Object implements Advice.Dispatcher.RelocationHandler
A relocation handler that is triggered if the checked value is an instance of a given type.
  • Field Details

    • typeDescription

      private final TypeDescription typeDescription
      The type that triggers a relocation.
    • index

      private final int index
      The index of the array returned by the advice method that contains the value to check for its type.
  • Constructor Details

    • ForType

      protected ForType(TypeDescription typeDescription, int index)
      Creates a new relocation handler that triggers a relocation if a value is an instance of a given type.
      Parameters:
      typeDescription - The type that triggers a relocation.
      index - The index of the array returned by the advice method that contains the value to check for its type.
  • Method Details