Enum Advice.OffsetMapping.Factory.AdviceType

java.lang.Object
java.lang.Enum<Advice.OffsetMapping.Factory.AdviceType>
net.bytebuddy.asm.Advice.OffsetMapping.Factory.AdviceType
All Implemented Interfaces:
Serializable, Comparable<Advice.OffsetMapping.Factory.AdviceType>, java.lang.constant.Constable
Enclosing interface:
Advice.OffsetMapping.Factory<T extends Annotation>

public static enum Advice.OffsetMapping.Factory.AdviceType extends Enum<Advice.OffsetMapping.Factory.AdviceType>
Describes the type of advice being applied.
  • Enum Constant Details

  • Field Details

    • delegation

      private final boolean delegation
      true if delegation is used.
  • Constructor Details

    • AdviceType

      private AdviceType(boolean delegation)
      Creates a new advice type.
      Parameters:
      delegation - true if delegation is used.
  • Method Details

    • values

      public static Advice.OffsetMapping.Factory.AdviceType[] 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.Factory.AdviceType 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
    • isDelegation

      public boolean isDelegation()
      Returns true if delegation is used.
      Returns:
      true if delegation is used.