ListElementParameter

open class ListElementParameter<S, T : Any>(id: TypedIdentifier<T>, description: String, val list: ContextualValue<S, List<T>>, val onEmpty: ExecutionContext<S>.() -> ExecutionResult) : Parameter.Size1<S, T>

Constructors

Link copied to clipboard
constructor(id: TypedIdentifier<T>, description: String, list: ContextualValue<S, List<T>>, onEmpty: ExecutionContext<S>.() -> ExecutionResult)

Properties

Link copied to clipboard
open override val description: String
Link copied to clipboard
open override val id: TypedIdentifier<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val size: Size.Fixed
Link copied to clipboard
open override val type: ElementType

Functions

Link copied to clipboard
open fun getGroupedSyntax(sender: S): String
Link copied to clipboard
open override fun getSyntax(sender: S): String
Link copied to clipboard
override fun parse(context: ExecutionContext<S>, args: List<String>): Result<out T>
open override fun parse(context: ExecutionContext<S>, arg0: String): Result<T>