Enum Class ModernJavaSyntaxMode
- All Implemented Interfaces:
Serializable, Comparable<ModernJavaSyntaxMode>, Constable
Defines the available modes for modern Java syntax support.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo modern syntax support - Java 8 onlyJabel-based syntax support (syntax only, no stdlib APIs)JVM Downgrader support (syntax + stdlib APIs, multi-release jar)Native modern Java (no downgrading, requires modern JVM at runtime) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ModernJavaSyntaxModefromString(@NotNull String value) Parses a property string, handling backwards-compatible boolean values.@NotNull StringThe property value string for this modebooleanbooleanstatic ModernJavaSyntaxModeReturns the enum constant of this class with the specified name.static ModernJavaSyntaxMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FALSE
No modern syntax support - Java 8 only -
JABEL
Jabel-based syntax support (syntax only, no stdlib APIs) -
JVM_DOWNGRADER
JVM Downgrader support (syntax + stdlib APIs, multi-release jar) -
MODERN
Native modern Java (no downgrading, requires modern JVM at runtime)
-
-
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
-
getPropertyValue
The property value string for this mode -
fromString
Parses a property string, handling backwards-compatible boolean values. -
usesJvmDowngrader
public boolean usesJvmDowngrader() -
requiresModernStdlib
public boolean requiresModernStdlib()
-