kcp-development
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
kcp-development
core
/
dev.rnett.kcp.development.options
/
CompilerOption
/
SingularWithDefault
Singular
With
Default
class
SingularWithDefault
<
T
>
(
name
:
String
,
valueDescription
:
String
,
description
:
String
,
val
transform
:
(
String
)
->
T
?
,
val
defaultValue
:
T
)
:
CompilerOption.WithDefault
<
T
>
(
source
)
Members
Constructors
Singular
With
Default
Link copied to clipboard
constructor
(
name
:
String
,
valueDescription
:
String
,
description
:
String
,
transform
:
(
String
)
->
T
?
,
defaultValue
:
T
)
Properties
cli
Option
Link copied to clipboard
val
cliOption
:
CliOption
default
Value
Link copied to clipboard
val
defaultValue
:
T
key
Link copied to clipboard
val
key
:
CompilerConfigurationKey
<
T
>
name
Link copied to clipboard
val
name
:
String
transform
Link copied to clipboard
val
transform
:
(
String
)
->
T
?
Functions
default
Value
Link copied to clipboard
open
override
fun
defaultValue
(
)
:
T
get
Option
Link copied to clipboard
open
override
fun
getOption
(
configuration
:
CompilerConfiguration
)
:
T
?
get
Option
Or
Default
Link copied to clipboard
fun
getOptionOrDefault
(
configuration
:
CompilerConfiguration
)
:
T
process
Option
Link copied to clipboard
open
override
fun
processOption
(
value
:
String
,
configuration
:
CompilerConfiguration
)