Enum Class CompilerPlugin

java.lang.Object
java.lang.Enum<CompilerPlugin>
rife.bld.extension.kotlin.CompilerPlugin
All Implemented Interfaces:
Serializable, Comparable<CompilerPlugin>, Constable

public enum CompilerPlugin extends Enum<CompilerPlugin>
Defines the known Kotlin compiler plugin JARs.
Since:
1.0
Author:
Erik C. Thauvin
  • Enum Constant Details

    • ALL_OPEN

      public static final CompilerPlugin ALL_OPEN
      Represents the Kotlin All-Open compiler plugin JAR.

      This plugin allows certain classes or methods to be open for inheritance without requiring explicit modification of their declarations.

    • ASSIGNMENT

      public static final CompilerPlugin ASSIGNMENT
      Represents the Kotlin Assignment compiler plugin JAR.

      This plugin enables features related to assignments in Kotlin, enhancing the compilation process for related constructs.

    • COMPOSE

      public static final CompilerPlugin COMPOSE
      Represents the Kotlin Compose compiler plugin JAR.

      This plugin is used to enable and optimize Jetpack Compose usage within Kotlin projects, integrating UI development into the compilation process.

    • KOTLIN_IMPORTS_DUMPER

      public static final CompilerPlugin KOTLIN_IMPORTS_DUMPER
      Represents the Kotlin Imports Dumper compiler plugin JAR.

      This plugin is used to analyze and dump Kotlin imports during the compilation process. It allows the export or inspection of import directives within Kotlin sources, aiding in diagnostics or code analysis tasks within a build or compiler plugin integration.

    • KOTLINX_SERIALIZATION

      public static final CompilerPlugin KOTLINX_SERIALIZATION
      Represents the Kotlin Serialization compiler plugin JAR.

      This plugin facilitates serialization and deserialization of Kotlin classes, allowing them to transform into various formats such as JSON, XML, or ProtoBuf. It integrates seamlessly with Kotlin's syntax and provides efficient runtime serialization mechanisms.

    • KOTLIN_SERIALIZATION

      public static final CompilerPlugin KOTLIN_SERIALIZATION
      Represents the Kotlinx Serialization compiler plugin JAR.

      This plugin integrates serialization and deserialization capabilities into Kotlin projects. It facilitates the transformation of Kotlin classes into various formats, such as JSON or XML, by leveraging Kotlin's serialization framework.

    • LOMBOK

      public static final CompilerPlugin LOMBOK
      Represents the Kotlin Lombok compiler plugin JAR.

      This plugin enables support for the Lombok Java library in Kotlin projects, facilitating the generation of boilerplate code such as getters, setters, equals, hashCode, and more during the compilation process.

    • NOARG

      public static final CompilerPlugin NOARG
      Represents the No-Arg compiler plugin JAR.

      This plugin enables the automatic generation of no-argument constructors for classes and data classes in Kotlin.

      This plugin is useful in scenarios where frameworks or libraries require objects with no-argument constructors, such as when using reflection-based instantiation.

    • POWER_ASSERT

      public static final CompilerPlugin POWER_ASSERT
      Represents the Power-Assert compiler plugin JAR.

      This plugin often used to enable enhanced assertion capabilities in Kotlin compilation.

      This plugin provides powerful runtime assertion messages, useful for debugging and testing purposes.

    • SAM_WITH_RECEIVER

      public static final CompilerPlugin SAM_WITH_RECEIVER
      Represents the Kotlin SAM-with-receiver compiler plugin JAR.

      This plugin enables support for single abstract method (SAM) conversions with an implicit receiver in Kotlin.

  • Field Details

    • jar

      public final String jar
  • Method Details

    • values

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