Enum Advice.OffsetMapping.Sort

java.lang.Object
java.lang.Enum<Advice.OffsetMapping.Sort>
net.bytebuddy.asm.Advice.OffsetMapping.Sort
All Implemented Interfaces:
Serializable, Comparable<Advice.OffsetMapping.Sort>, java.lang.constant.Constable
Enclosing interface:
Advice.OffsetMapping

public static enum Advice.OffsetMapping.Sort extends Enum<Advice.OffsetMapping.Sort>
Describes the sort of the executed advice.
  • Enum Constant Details

  • Constructor Details

    • Sort

      private Sort()
  • Method Details

    • values

      public static Advice.OffsetMapping.Sort[] 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

      public static Advice.OffsetMapping.Sort valueOf(String name)
      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
    • isPremature

      public abstract boolean isPremature(MethodDescription methodDescription)
      Checks if an advice is executed in a premature state, i.e. the instrumented method is a constructor where the super constructor is not yet invoked. In this case, the this reference is not yet initialized and therefore not available.
      Parameters:
      methodDescription - The instrumented method.
      Returns:
      true if the advice is executed premature for the instrumented method.