Add new experimental scripting API

This commit is contained in:
Ilya Chernikov
2018-02-05 15:39:26 +01:00
parent 4aec9499b5
commit aac7f97121
16 changed files with 509 additions and 0 deletions
@@ -0,0 +1,27 @@
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package kotlin.script.experimental.annotations
import kotlin.reflect.KClass
import kotlin.script.experimental.api.ScriptConfigurator
import kotlin.script.experimental.api.ScriptRunner
import kotlin.script.experimental.api.ScriptSelector
import kotlin.script.experimental.basic.DefaultScriptSelector
import kotlin.script.experimental.basic.DummyRunner
import kotlin.script.experimental.basic.PassThroughConfigurator
@Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME)
annotation class KotlinScript(
val selector: KClass<out ScriptSelector> = DefaultScriptSelector::class,
val configurator: KClass<out ScriptConfigurator> = PassThroughConfigurator::class,
val runner: KClass<out ScriptRunner<*>> = DummyRunner::class
)