Class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter

java.lang.Object
net.bytebuddy.asm.Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter
All Implemented Interfaces:
Advice.Dispatcher.Bound
Direct Known Subclasses:
Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodEnter, Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter.ForMethodExit
Enclosing class:
Advice.Dispatcher.Delegating.Resolved

protected abstract static class Advice.Dispatcher.Delegating.Resolved.AdviceMethodWriter extends Object implements Advice.Dispatcher.Bound
A bound advice method that copies the code by first extracting the exception table and later appending the code of the method without copying any meta data.
  • Field Details

    • typeToken

      protected final MethodDescription.TypeToken typeToken
      The advice method.
    • methodVisitor

      protected final org.objectweb.asm.MethodVisitor methodVisitor
      The method visitor for writing the instrumented method.
    • implementationContext

      protected final Implementation.Context implementationContext
      The implementation context to use.
    • argumentHandler

      protected final Advice.ArgumentHandler.ForAdvice argumentHandler
      A handler for accessing values on the local variable array.
    • methodSizeHandler

      protected final Advice.MethodSizeHandler.ForAdvice methodSizeHandler
      A handler for computing the method size requirements.
    • stackMapFrameHandler

      protected final Advice.StackMapFrameHandler.ForAdvice stackMapFrameHandler
      A handler for translating and injecting stack map frames.
  • Constructor Details

  • Method Details

    • prepare

      public void prepare()
      Prepares the advice method's exception handlers.
      Specified by:
      prepare in interface Advice.Dispatcher.Bound
    • apply

      public void apply()
      Applies this dispatcher.
      Specified by:
      apply in interface Advice.Dispatcher.Bound
    • isExitAdvice

      protected abstract boolean isExitAdvice()
      Returns true if this writer represents exit advice.
      Returns:
      true if this writer represents exit advice.