Enum Class AnnotationValue.Sort

java.lang.Object
java.lang.Enum<AnnotationValue.Sort>
net.bytebuddy.description.annotation.AnnotationValue.Sort
All Implemented Interfaces:
Serializable, Comparable<AnnotationValue.Sort>, Constable
Enclosing interface:
AnnotationValue<T,S>

public static enum AnnotationValue.Sort extends Enum<AnnotationValue.Sort>
Represents the sort of an AnnotationValue.
  • Enum Constant Details

  • Field Details

    • tag

      private final int tag
      The property's tag.
  • Constructor Details

    • Sort

      private Sort(int tag)
      Creates a new sort.
      Parameters:
      tag - The property's tag.
  • Method Details

    • values

      public static AnnotationValue.Sort[] 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 AnnotationValue.Sort 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
    • of

      public static AnnotationValue.Sort of(TypeDefinition typeDefinition)
      Resolves a sort for the provided type definition.
      Parameters:
      typeDefinition - The type definition to resolve.
      Returns:
      The resolved sort for the provided type definition.
    • getTag

      protected int getTag()
      Returns the property's tag.
      Returns:
      The property's tag.
    • isDefined

      public boolean isDefined()
      Returns true if the property is defined.
      Returns:
      true if the property is defined.