Enum Advice.StackMapFrameHandler.Default.TranslationMode

java.lang.Object
java.lang.Enum<Advice.StackMapFrameHandler.Default.TranslationMode>
net.bytebuddy.asm.Advice.StackMapFrameHandler.Default.TranslationMode
All Implemented Interfaces:
Serializable, Comparable<Advice.StackMapFrameHandler.Default.TranslationMode>, java.lang.constant.Constable
Enclosing class:
Advice.StackMapFrameHandler.Default

protected static enum Advice.StackMapFrameHandler.Default.TranslationMode extends Enum<Advice.StackMapFrameHandler.Default.TranslationMode>
A translation mode that determines how the fixed frames of the instrumented method are written.
  • Enum Constant Details

  • Constructor Details

    • TranslationMode

      private TranslationMode()
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • copy

      protected abstract int copy(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object[] localVariable, Object[] translated)
      Copies the fixed parameters of the instrumented method onto the operand stack.
      Parameters:
      instrumentedType - The instrumented type.
      instrumentedMethod - The instrumented method.
      localVariable - The original local variable array.
      translated - The array containing the translated frames.
      Returns:
      The amount of frames added to the translated frame array.
    • isPossibleThisFrameValue

      protected abstract boolean isPossibleThisFrameValue(TypeDescription instrumentedType, MethodDescription instrumentedMethod, Object frame)
      Checks if a variable value in a stack map frame is a legal value for describing a this reference.
      Parameters:
      instrumentedType - The instrumented type.
      instrumentedMethod - The instrumented method.
      frame - The frame value representing the this reference.
      Returns:
      true if the value is a legal representation of the this reference.