kbrig-core
0.1.0
common
kbrig-core
/
org.anvilpowered.kbrig.builder
/
ArgumentBuilder
Argument
Builder
sealed
class
ArgumentBuilder
<
S
,
B
:
ArgumentBuilder
<
S
,
B
>
>
Inheritors
LiteralArgumentBuilder
RequiredArgumentBuilder
Members
Types
Companion
Link copied to clipboard
object
Companion
Properties
children
Link copied to clipboard
val
children
:
Map
<
String
,
CommandNode
<
S
>
>
command
Link copied to clipboard
var
command
:
Command
<
S
>
?
forks
Link copied to clipboard
var
forks
:
Boolean
redirect
Link copied to clipboard
var
redirect
:
CommandNode
<
S
>
?
requirement
Link copied to clipboard
var
requirement
:
(
S
)
->
Boolean
Functions
build
Link copied to clipboard
abstract
fun
build
(
)
:
CommandNode
<
S
>
executes
Link copied to clipboard
fun
executes
(
command
:
Command
<
S
>
?
)
:
B
fork
Link copied to clipboard
fun
fork
(
target
:
CommandNode
<
S
>
)
:
B
forward
Link copied to clipboard
fun
forward
(
target
:
CommandNode
<
S
>
?
,
forks
:
Boolean
)
:
B
redirect
Link copied to clipboard
fun
redirect
(
target
:
CommandNode
<
S
>
)
:
B
requires
Link copied to clipboard
fun
requires
(
requirement
:
(
S
)
->
Boolean
)
:
B
then
Link copied to clipboard
fun
then
(
argument
:
ArgumentBuilder
<
S
,
*
>
)
:
B
fun
then
(
argument
:
CommandNode
<
S
>
)
:
B