ArgumentAcceptance

sealed class ArgumentAcceptance

Types

Companion
Link copied to clipboard
object Companion
Direct
Link copied to clipboard
object Direct : ArgumentAcceptance
Impossible
Link copied to clipboard
object Impossible : ArgumentAcceptance
ResolutionAmbiguity
Link copied to clipboard
data class ResolutionAmbiguity(candidates: List<TypeVariant<*>>) : ArgumentAcceptance
WithContextualConversion
Link copied to clipboard
data class WithContextualConversion(parser: CommandValueArgumentParser<*>) : ArgumentAcceptance
WithTypeConversion
Link copied to clipboard
data class WithTypeConversion(typeVariant: TypeVariant<*>) : ArgumentAcceptance

Properties

acceptanceLevel
Link copied to clipboard
val acceptanceLevel: Int

Higher means more acceptable

Inheritors

Direct
Link copied to clipboard
WithTypeConversion
Link copied to clipboard
WithContextualConversion
Link copied to clipboard
ResolutionAmbiguity
Link copied to clipboard
Impossible
Link copied to clipboard

Extensions

isAcceptable
Link copied to clipboard
val ArgumentAcceptance.isAcceptable: Boolean
isNotAcceptable
Link copied to clipboard
val ArgumentAcceptance.isNotAcceptable: Boolean