Enum Class KotlinModifier

java.lang.Object
java.lang.Enum<KotlinModifier>
io.spring.initializr.generator.language.kotlin.KotlinModifier
All Implemented Interfaces:
Serializable, Comparable<KotlinModifier>, Constable

public enum KotlinModifier extends Enum<KotlinModifier>
Basic modifiers for Kotlin.
Author:
Stephane Nicoll
  • Enum Constant Details

    • PUBLIC

      public static final KotlinModifier PUBLIC
      Visible to anyone.
    • PROTECTED

      public static final KotlinModifier PROTECTED
      Visible inside that class and any subclass.
    • PRIVATE

      public static final KotlinModifier PRIVATE
      Visible inside this class only.
    • FINAL

      public static final KotlinModifier FINAL
      Final modifier.
    • OPEN

      public static final KotlinModifier OPEN
      Allow to override a member.
    • ABSTRACT

      public static final KotlinModifier ABSTRACT
      Declare a member without an implementation (infers open).
    • OVERRIDE

      public static final KotlinModifier OVERRIDE
      Override a member.
    • LATEINIT

      public static final KotlinModifier LATEINIT
      Declare a late-initialized property.
  • Method Details

    • values

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