Enum Class SourceOrigin
- All Implemented Interfaces:
Serializable, Comparable<SourceOrigin>, Constable
Describes the origin of a source file, which determines if it's modifiable.
- Author:
- Anahata
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe source file is located inside a JAR file (e.g., a dependency) and is read-only.The source file is part of the JDK sources and is read-only.The source file is part of an open project and is modifiable.The origin of the source file could not be determined. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceOriginReturns the enum constant of this class with the specified name.static SourceOrigin[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROJECT
The source file is part of an open project and is modifiable. -
JAR
The source file is located inside a JAR file (e.g., a dependency) and is read-only. -
JDK
The source file is part of the JDK sources and is read-only. -
UNKNOWN
The origin of the source file could not be determined.
-
-
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
-
