Enum Class ModernJavaSyntaxMode

java.lang.Object
java.lang.Enum<ModernJavaSyntaxMode>
com.gtnewhorizons.gtnhgradle.ModernJavaSyntaxMode
All Implemented Interfaces:
Serializable, Comparable<ModernJavaSyntaxMode>, Constable

public enum ModernJavaSyntaxMode extends Enum<ModernJavaSyntaxMode>
Defines the available modes for modern Java syntax support.
  • Enum Constant Details

    • FALSE

      public static final ModernJavaSyntaxMode FALSE
      No modern syntax support - Java 8 only
    • JABEL

      public static final ModernJavaSyntaxMode JABEL
      Jabel-based syntax support (syntax only, no stdlib APIs)
    • JVM_DOWNGRADER

      public static final ModernJavaSyntaxMode JVM_DOWNGRADER
      JVM Downgrader support (syntax + stdlib APIs, multi-release jar)
    • MODERN

      public static final ModernJavaSyntaxMode MODERN
      Native modern Java (no downgrading, requires modern JVM at runtime)
  • Method Details

    • values

      public static ModernJavaSyntaxMode[] 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 ModernJavaSyntaxMode 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
    • getPropertyValue

      @NotNull public @NotNull String getPropertyValue()
      The property value string for this mode
    • fromString

      @NotNull public static @NotNull ModernJavaSyntaxMode fromString(@NotNull @NotNull String value)
      Parses a property string, handling backwards-compatible boolean values.
    • usesJvmDowngrader

      public boolean usesJvmDowngrader()
    • requiresModernStdlib

      public boolean requiresModernStdlib()