Enum Class SourceOrigin

java.lang.Object
java.lang.Enum<SourceOrigin>
uno.anahata.ai.nb.model.java.SourceOrigin
All Implemented Interfaces:
Serializable, Comparable<SourceOrigin>, Constable

public enum SourceOrigin extends Enum<SourceOrigin>
Describes the origin of a source file, which determines if it's modifiable.
Author:
Anahata
  • Enum Constant Details

    • PROJECT

      public static final SourceOrigin PROJECT
      The source file is part of an open project and is modifiable.
    • JAR

      public static final SourceOrigin JAR
      The source file is located inside a JAR file (e.g., a dependency) and is read-only.
    • JDK

      public static final SourceOrigin JDK
      The source file is part of the JDK sources and is read-only.
    • UNKNOWN

      public static final SourceOrigin UNKNOWN
      The origin of the source file could not be determined.
  • Method Details

    • values

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