Uses of Interface
dev.sympho.modular_commands.api.command.parameter.Parameter
Packages that use Parameter
Package
Description
APIs related to defining a command.
Interfaces that represent the invocation context of a command.
API for defining the parameters that a command takes.
Interfaces defining the result of handling an invoked command.
Collection of classes that provide assorted utilies for ease of use.
-
Uses of Parameter in dev.sympho.modular_commands.api.command
Methods in dev.sympho.modular_commands.api.command that return types with arguments of type ParameterModifier and TypeMethodDescriptionCommand.parameters()
The command parameters, in the order that they should be provided by the user. -
Uses of Parameter in dev.sympho.modular_commands.api.command.context
Methods in dev.sympho.modular_commands.api.command.context with parameters of type ParameterModifier and TypeMethodDescriptionCommandContext.getArgument
(Parameter<? extends T> parameter) Retrieves one of the arguments to the command.CommandContext.getArgument
(Parameter<? extends T> parameter, Class<T> argumentType) Retrieves one of the arguments to the command.CommandContext.requireArgument
(Parameter<? extends T> parameter) Retrieves one of the arguments to the command expecting that it is non-null, i.e.CommandContext.requireArgument
(Parameter<? extends T> parameter, Class<T> argumentType) Retrieves one of the arguments to the command expecting that it is non-null, i.e. -
Uses of Parameter in dev.sympho.modular_commands.api.command.parameter
Methods in dev.sympho.modular_commands.api.command.parameter with parameters of type ParameterModifier and TypeMethodDescriptionstatic <T extends @NonNull Object>
Parameter.Builder<T>Creates a new builder initialized with the properties of the given parameter. -
Uses of Parameter in dev.sympho.modular_commands.api.command.result
Methods in dev.sympho.modular_commands.api.command.result that return ParameterModifier and TypeMethodDescriptionParameter<?>
CommandFailureArgumentInvalid.parameter()
Returns the value of theparameter
record component.Parameter<?>
CommandFailureArgumentMissing.parameter()
Returns the value of theparameter
record component.Constructors in dev.sympho.modular_commands.api.command.result with parameters of type ParameterModifierConstructorDescriptionCommandFailureArgumentInvalid
(Parameter<?> parameter, String error) Creates an instance of aCommandFailureArgumentInvalid
record class.CommandFailureArgumentMissing
(Parameter<?> parameter) Creates an instance of aCommandFailureArgumentMissing
record class. -
Uses of Parameter in dev.sympho.modular_commands.utils
Methods in dev.sympho.modular_commands.utils with parameters of type ParameterModifier and TypeMethodDescriptionstatic void
Validates a parameter.Method parameters in dev.sympho.modular_commands.utils with type arguments of type ParameterModifier and TypeMethodDescriptionstatic void
CommandUtils.validateParameters
(List<Parameter<?>> parameters) Validates the parameters of a command.