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".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAjava file provided on command line.Ajava file being parsed as if it is a stub file.Stub file built into a checker.Stub file provided on command line.Stub file in the annotated JDK. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this annotation file is built-in (not provided on the command line).boolean
Returns true if this annotation file was provided on the command line (not built-in).boolean
isStub()
Returns true if this represents a stub file.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JDK_STUB
Stub file in the annotated JDK. -
BUILTIN_STUB
Stub file built into a checker. -
COMMAND_LINE_STUB
Stub file provided on command line. -
AJAVA_AS_STUB
Ajava file being parsed as if it is a stub file. -
AJAVA
Ajava file provided on command line.
-
-
Method Details
-
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
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 nameNullPointerException
- 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)
-