Class Advice.Dispatcher.Resolved.AbstractBase

java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.Resolved.AbstractBase
All Implemented Interfaces:
Advice.Dispatcher, Advice.Dispatcher.Resolved
Direct Known Subclasses:
Advice.Dispatcher.Delegating.Resolved, Advice.Dispatcher.Inlining.Resolved
Enclosing interface:
Advice.Dispatcher.Resolved

@Enhance public abstract static class Advice.Dispatcher.Resolved.AbstractBase extends Object implements Advice.Dispatcher.Resolved
An abstract base implementation of a Advice.Dispatcher.Resolved dispatcher.
  • Field Details

  • Constructor Details

    • AbstractBase

      protected AbstractBase(MethodDescription.InDefinedShape adviceMethod, Advice.PostProcessor postProcessor, List<? extends Advice.OffsetMapping.Factory<?>> factories, TypeDescription throwableType, TypeDescription relocatableType, int relocatableIndex, Advice.OffsetMapping.Factory.AdviceType adviceType)
      Creates a new resolved version of a dispatcher.
      Parameters:
      adviceMethod - The represented advice method.
      postProcessor - The post processor to use.
      factories - A list of factories to resolve for the parameters of the advice method.
      throwableType - The type to handle by a suppression handler or Advice.NoExceptionHandler to not handle any exceptions.
      relocatableType - The type to trigger a relocation of the method's control flow or void if no relocation should be executed.
      relocatableIndex - The index within an array that is returned by the advice method, indicating the value to consider for relocation.
      adviceType - The applied advice type.
  • Method Details

    • isAlive

      public boolean isAlive()
      Returns true if this dispatcher is alive.
      Specified by:
      isAlive in interface Advice.Dispatcher
      Returns:
      true if this dispatcher is alive.