CommandNode

abstract class CommandNode<S>(val name: String, val command: Command<S>?, val requirement: (S) -> Boolean, val redirect: CommandNode<S>?, val forks: Boolean, val children: Map<String, CommandNode<S>>) : Comparable<CommandNode<S>>

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, command: Command<S>?, requirement: (S) -> Boolean, redirect: CommandNode<S>?, forks: Boolean, children: Map<String, CommandNode<S>>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val examples: Set<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val usageText: String

Functions

Link copied to clipboard
open operator override fun compareTo(other: CommandNode<S>): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
abstract suspend fun listSuggestions(context: CommandContext<S>, builder: SuggestionsBuilder): Suggestions
Link copied to clipboard
fun <S, R> CommandNode<S>.mapSource(mapper: (R) -> S): CommandNode<R>

Converts the given CommandNode with source type S to an CommandNode with source type R.

Link copied to clipboard
abstract fun toBuilder(): ArgumentBuilder<S, *>
Link copied to clipboard
abstract override fun toString(): String