Enum TypeTarget.Usage

java.lang.Object
java.lang.Enum<TypeTarget.Usage>
org.jboss.jandex.TypeTarget.Usage
All Implemented Interfaces:
Serializable, Comparable<TypeTarget.Usage>
Enclosing class:
TypeTarget

public static enum TypeTarget.Usage extends Enum<TypeTarget.Usage>
Specifies a form of usage of a type annotation
  • Enum Constant Details

    • EMPTY

      public static final TypeTarget.Usage EMPTY
      Indicates a type annotation occurs within a field, method receiver, or method return type
    • CLASS_EXTENDS

      public static final TypeTarget.Usage CLASS_EXTENDS
      Indicates a type annotation occurs within class' extends or implements clause
    • METHOD_PARAMETER

      public static final TypeTarget.Usage METHOD_PARAMETER
      Indicates a type annotation occurs within a method parameter
    • TYPE_PARAMETER

      public static final TypeTarget.Usage TYPE_PARAMETER
      Indicates a type annotation occurs within a method or class type parameter
    • TYPE_PARAMETER_BOUND

      public static final TypeTarget.Usage TYPE_PARAMETER_BOUND
      Indicates a type annotation occurs within the bound of a method or class type parameter
    • THROWS

      public static final TypeTarget.Usage THROWS
      Indicates a type annotation occurs within the throws clause of a method
  • Constructor Details

    • Usage

      private Usage()
  • Method Details

    • values

      public static TypeTarget.Usage[] 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 TypeTarget.Usage 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