Enum Modifier
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum Modifier extends Enum<Modifier>
All possible modifiers presented in the Kotlin grammar. Modifiers you can get from a declaration are explict modifiers as they are declared in source code. Same modifier can be semantically different in different languages, therefore you should only rely on modifiers if you have a good understanding of what it means in specific cases, otherwise you should rely on helper functions like isOpen() for modifier related logic. Modifiers prefixed with "JAVA_" are java only modifiers.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PUBLICPRIVATEINTERNALPROTECTEDINOUTOVERRIDELATEINITENUMSEALEDANNOTATIONDATAINNERFUNVALUESUSPENDTAILRECOPERATORINFIXINLINEEXTERNALABSTRACTFINALOPENCONSTVARARGNOINLINECROSSINLINEREIFIEDEXPECTACTUALJAVA_DEFAULTJAVA_NATIVEJAVA_STATICJAVA_STRICTJAVA_SYNCHRONIZEDJAVA_TRANSIENTJAVA_VOLATILE
-
Method Summary
Modifier and Type Method Description final ModifiervalueOf(String value)Returns the enum constant of this type with the specified name. final Array<Modifier>values()Returns an array containing the constants of this enum type, in the order they're declared. final EnumEntries<Modifier>getEntries()All possible modifiers presented in the Kotlin grammar. -
-
Method Detail
-
valueOf
final Modifier valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<Modifier> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<Modifier> getEntries()
All possible modifiers presented in the Kotlin grammar. Modifiers you can get from a declaration are explict modifiers as they are declared in source code. Same modifier can be semantically different in different languages, therefore you should only rely on modifiers if you have a good understanding of what it means in specific cases, otherwise you should rely on helper functions like isOpen() for modifier related logic. Modifiers prefixed with "JAVA_" are java only modifiers.
-
-
-
-