Enum Class Advice.StackMapFrameHandler.NoOp

java.lang.Object
java.lang.Enum<Advice.StackMapFrameHandler.NoOp>
net.bytebuddy.asm.Advice.StackMapFrameHandler.NoOp
All Implemented Interfaces:
Serializable, Comparable<Advice.StackMapFrameHandler.NoOp>, Constable, Advice.StackMapFrameHandler, Advice.StackMapFrameHandler.ForAdvice, Advice.StackMapFrameHandler.ForInstrumentedMethod, Advice.StackMapFrameHandler.ForPostProcessor
Enclosing interface:
Advice.StackMapFrameHandler

A non-operational stack map frame handler.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static Advice.StackMapFrameHandler.NoOp[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Advice.StackMapFrameHandler.NoOp valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • bindEnter

      Binds this meta data handler for the enter advice.
      Specified by:
      bindEnter in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
      Parameters:
      adviceMethod - The enter advice method.
      Returns:
      An appropriate meta data handler for the enter method.
    • bindExit

      Binds this meta data handler for the exit advice.
      Specified by:
      bindExit in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
      Parameters:
      adviceMethod - The exit advice method.
      Returns:
      An appropriate meta data handler for the enter method.
    • getReaderHint

      public int getReaderHint()
      Returns a hint to supply to a ClassReader when parsing an advice method.
      Specified by:
      getReaderHint in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
      Returns:
      The reader hint to supply to an ASM class reader.
    • translateFrame

      public void translateFrame(org.objectweb.asm.MethodVisitor methodVisitor, int type, int localVariableLength, @MaybeNull Object[] localVariable, int stackSize, @MaybeNull Object[] stack)
      Translates a frame.
      Specified by:
      translateFrame in interface Advice.StackMapFrameHandler
      Parameters:
      methodVisitor - The method visitor to write the frame to.
      type - The frame's type.
      localVariableLength - The local variable length.
      localVariable - An array containing the types of the current local variables.
      stackSize - The size of the operand stack.
      stack - An array containing the types of the current operand stack.
    • injectReturnFrame

      public void injectReturnFrame(org.objectweb.asm.MethodVisitor methodVisitor)
      Injects a frame indicating the beginning of a return value handler for the currently handled method.
      Specified by:
      injectReturnFrame in interface Advice.StackMapFrameHandler
      Parameters:
      methodVisitor - The method visitor onto which to apply the stack map frame.
    • injectExceptionFrame

      public void injectExceptionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
      Injects a frame indicating the beginning of an exception handler for the currently handled method.
      Specified by:
      injectExceptionFrame in interface Advice.StackMapFrameHandler
      Parameters:
      methodVisitor - The method visitor onto which to apply the stack map frame.
    • injectCompletionFrame

      public void injectCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
      Injects a frame indicating the completion of the currently handled method, i.e. all yielded types were added.
      Specified by:
      injectCompletionFrame in interface Advice.StackMapFrameHandler
      Parameters:
      methodVisitor - The method visitor onto which to apply the stack map frame.
    • injectInitializationFrame

      public void injectInitializationFrame(org.objectweb.asm.MethodVisitor methodVisitor)
      Injects a frame after initialization if any initialization is performed.
      Specified by:
      injectInitializationFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
      Parameters:
      methodVisitor - The method visitor to write any frames to.
    • injectStartFrame

      public void injectStartFrame(org.objectweb.asm.MethodVisitor methodVisitor)
      Injects a frame before executing the instrumented method.
      Specified by:
      injectStartFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
      Parameters:
      methodVisitor - The method visitor to write any frames to.
    • injectPostCompletionFrame

      public void injectPostCompletionFrame(org.objectweb.asm.MethodVisitor methodVisitor)
      Injects a frame indicating the completion of the currently handled method, i.e. all yielded types were added.
      Specified by:
      injectPostCompletionFrame in interface Advice.StackMapFrameHandler.ForInstrumentedMethod
      Parameters:
      methodVisitor - The method visitor onto which to apply the stack map frame.
    • injectIntermediateFrame

      public void injectIntermediateFrame(org.objectweb.asm.MethodVisitor methodVisitor, List<? extends TypeDescription> stack)
      Injects a frame that represents the current state.
      Specified by:
      injectIntermediateFrame in interface Advice.StackMapFrameHandler.ForPostProcessor
      Parameters:
      methodVisitor - The method visitor onto which to apply the stack map frame.
      stack - A list of types that are currently on the stack.