Enum Class AnnotationTarget

java.lang.Object
java.lang.Enum<AnnotationTarget>
org.seasar.doma.AnnotationTarget
All Implemented Interfaces:
Serializable, Comparable<AnnotationTarget>, Constable

public enum AnnotationTarget extends Enum<AnnotationTarget>
Defines the locations where annotations may appear in Java code.

This enum is used to specify the valid target locations for annotations within the Doma framework's annotation processing system.

See Also:
  • Enum Constant Details

    • CLASS

      public static final AnnotationTarget CLASS
      Class
    • CONSTRUCTOR

      public static final AnnotationTarget CONSTRUCTOR
      Constructor
    • CONSTRUCTOR_PARAMETER

      public static final AnnotationTarget CONSTRUCTOR_PARAMETER
      Constructor's parameter
  • Method Details

    • values

      public static AnnotationTarget[] 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 AnnotationTarget 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