DefaultCompilerArgsConfigurator

class DefaultCompilerArgsConfigurator(jvmTargetVersion: String = JavaRuntime.version) : CompilerArgsConfigurator

This class defines the default compiler arguments used to compile snippets.

See also

Constructors

Link copied to clipboard
constructor(jvmTargetVersion: String = JavaRuntime.version)

Functions

Link copied to clipboard
open override fun addArg(arg: String)

Manually add a single command line argument.

Link copied to clipboard
open override fun configure(configuration: ScriptCompilationConfiguration, annotations: List<Annotation>): ResultWithDiagnostics<ScriptCompilationConfiguration>

This method is called as part of the org.jetbrains.kotlinx.jupyter.codegen.FileAnnotationsProcessor and is responsible for extracting any relevant compiler args from the list of jupyter.kotlin.CompilerArgs annotations found in the notebook cell.

Link copied to clipboard
open override fun getArgs(): List<String>

Get all compiler arguments for the current ScriptCompilationConfiguration. configure or addArg should be called before this method.