Enum Class AnnotationFileUtil.AnnotationFileType

java.lang.Object
java.lang.Enum<AnnotationFileUtil.AnnotationFileType>
org.checkerframework.framework.stub.AnnotationFileUtil.AnnotationFileType
All Implemented Interfaces:
Serializable, Comparable<AnnotationFileUtil.AnnotationFileType>, Constable
Enclosing class:
AnnotationFileUtil

public static enum AnnotationFileUtil.AnnotationFileType extends Enum<AnnotationFileUtil.AnnotationFileType>
The types of files that can contain annotations. Also indicates the file's source, such as from the JDK, built in, or from the command line.

Stub files have extension ".astub". Ajava files have extension ".ajava".

  • Enum Constant Details

  • Method Details

    • values

      public static AnnotationFileUtil.AnnotationFileType[] 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 AnnotationFileUtil.AnnotationFileType 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
    • isStub

      public boolean isStub()
      Returns true if this represents a stub file.
      Returns:
      true if this represents a stub file
    • isBuiltIn

      public boolean isBuiltIn()
      Returns true if this annotation file is built-in (not provided on the command line).
      Returns:
      true if this annotation file is built-in (not provided on the command line)
    • isCommandLine

      public boolean isCommandLine()
      Returns true if this annotation file was provided on the command line (not built-in).
      Returns:
      true if this annotation file was provided on the command line (not built-in)