Enum TypeTarget.Usage

    • Enum Constant Detail

      • 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
    • Method Detail

      • values

        public static TypeTarget.Usage[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TypeTarget.Usage c : TypeTarget.Usage.values())
            System.out.println(c);
        
        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