Package com.strobel.assembler.metadata
Enum Class LanguageFeature
- All Implemented Interfaces:
Serializable,Comparable<LanguageFeature>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLanguageFeature(CompilerTarget version) privateLanguageFeature(CompilerTarget version, CompilerTarget previewVersion) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanisAvailable(CompilerTarget targetVersion) final booleanisAvailable(CompilerTarget targetVersion, boolean allowPreview) final booleanisAvailable(TypeDefinition definition) final booleanisAvailable(TypeDefinition definition, boolean allowPreview) final CompilerTargetstatic LanguageFeatureReturns the enum constant of this class with the specified name.static LanguageFeature[]values()Returns an array containing the constants of this enum class, in the order they are declared.final CompilerTargetversion()
-
Enum Constant Details
-
ENUM_CLASSES
-
FOR_EACH_LOOPS
-
TRY_WITH_RESOURCES
-
DEFAULT_INTERFACE_METHODS
-
STATIC_INTERFACE_METHODS
-
LAMBDA_EXPRESSIONS
-
TRY_EXPRESSION_RESOURCE
-
PRIVATE_LOOKUP
-
LOCAL_TYPE_INFERENCE
-
SWITCH_EXPRESSIONS
-
TEXT_BLOCKS
-
SEALED_CLASSES
-
RECORD_CLASSES
-
PATTERN_MATCHING
-
-
Field Details
-
_version
-
_previewVersion
-
-
Constructor Details
-
LanguageFeature
-
LanguageFeature
-
-
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
-
version
-
previewVersion
-
isAvailable
-
isAvailable
-
isAvailable
-
isAvailable
-