Class Advice.Dispatcher.RelocationHandler.ForType

    • Field Detail

      • 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 Detail

      • 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.