kcp-development
Toggle table of contents
0.0.4
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
kcp-development
core
/
dev.rnett.kcp.development.options
/
CompilerOption
Compiler
Option
sealed
class
CompilerOption
<
T
:
Any
>
(
source
)
A compiler option - includes both a
CliOption
and a
CompilerConfiguration
property.
Inheritors
WithDefault
Singular
Members
Types
Keyed
Link copied to clipboard
class
Keyed
<
K
:
Any
,
V
:
Any
>
(
name
:
String
,
valueDescription
:
String
,
description
:
String
,
required
:
Boolean
,
val
transform
:
(
String
)
->
Pair
<
K
,
V
>
?
)
:
CompilerOption.WithDefault
<
Map
<
K
,
V
>
>
Repeated
Link copied to clipboard
class
Repeated
<
T
>
(
name
:
String
,
valueDescription
:
String
,
description
:
String
,
required
:
Boolean
,
val
transform
:
(
String
)
->
T
?
)
:
CompilerOption.WithDefault
<
List
<
T
>
>
Singular
Link copied to clipboard
class
Singular
<
T
:
Any
>
(
name
:
String
,
valueDescription
:
String
,
description
:
String
,
required
:
Boolean
,
val
transform
:
(
String
)
->
T
?
)
:
CompilerOption
<
T
>
Singular
With
Default
Link copied to clipboard
class
SingularWithDefault
<
T
:
Any
>
(
name
:
String
,
valueDescription
:
String
,
description
:
String
,
val
transform
:
(
String
)
->
T
?
,
val
defaultValue
:
T
)
:
CompilerOption.WithDefault
<
T
>
With
Default
Link copied to clipboard
sealed
class
WithDefault
<
T
:
Any
>
:
CompilerOption
<
T
>
Properties
cli
Option
Link copied to clipboard
val
cliOption
:
CliOption
key
Link copied to clipboard
val
key
:
CompilerConfigurationKey
<
T
>
name
Link copied to clipboard
val
name
:
String
Functions
get
Option
Link copied to clipboard
abstract
fun
getOption
(
configuration
:
CompilerConfiguration
)
:
T
?
process
Option
Link copied to clipboard
abstract
fun
processOption
(
value
:
String
,
configuration
:
CompilerConfiguration
)