CommandArgument

sealed class CommandArgument<S, out B : ArgumentBuilder<S, *>, out D : ArgumentDescriptor<*>, out A>

An argument ready to be registered into a command. Can be either optional or required.

Author

Cypher121

Types

Link copied to clipboard
class Optional<S, D : ArgumentDescriptor<*>>(    builder: ArgumentBuilder<S, *>,     name: String,     descriptor: D) : CommandArgument<S, ArgumentBuilder<S, *>, D, ArgumentAccessor<S, D>?>

CommandArgument that may be absent from the command.

Link copied to clipboard
class Required<S, B : ArgumentBuilder<S, *>, D : ArgumentDescriptor<*>>(    builder: B,     name: String,     descriptor: D) : CommandArgument<S, B, D, ArgumentAccessor<S, D>>

CommandArgument that must be present in the command.

Functions

Link copied to clipboard
abstract fun register(parentBuilder: ArgumentBuilder<S, *>, action: B.(A) -> Unit)

Registers the argument on the parentBuilder.

Properties

Link copied to clipboard
val builder: B
Link copied to clipboard
val descriptor: D
Link copied to clipboard
val name: String

Inheritors

Link copied to clipboard
Link copied to clipboard