Uses of Interface
dev.sympho.modular_commands.api.command.handler.Handlers
Packages that use Handlers
Package
Description
APIs related to defining a command.
Handler interfaces used across the system.
Registry system for registering commands that can be executed.
Runtime system for executing commands defined through the API.
Default implementations for registries.
Collection of classes that provide assorted utilies for ease of use.
-
Uses of Handlers in dev.sympho.modular_commands.api.command
Classes in dev.sympho.modular_commands.api.command with type parameters of type HandlersModifier and TypeInterfaceDescriptioninterface
A command that can be invoked by a user.static class
Command.Builder<H extends @NonNull Handlers>
The default builder.Methods in dev.sympho.modular_commands.api.command with type parameters of type HandlersModifier and TypeMethodDescriptionstatic <H extends @NonNull Handlers>
Command.Builder<H>Command.builder()
Creates a new builder.static <H extends @NonNull Handlers>
Command.Builder<H>Creates a new builder initialized with the properties of the given command. -
Uses of Handlers in dev.sympho.modular_commands.api.command.handler
Subinterfaces of Handlers in dev.sympho.modular_commands.api.command.handlerModifier and TypeInterfaceDescriptioninterface
A set of handlers that support interaction-based invocations.interface
A set of handlers that support message-based invocations.interface
A set of handlers that support slash-based invocations.interface
A set of handlers that support text-based (message and slash) invocations.Classes in dev.sympho.modular_commands.api.command.handler that implement HandlersModifier and TypeClassDescriptionstatic final record
A record-based implementation.static final record
A record-based implementation.static final record
A record-based implementation.static final record
A record-based implementation. -
Uses of Handlers in dev.sympho.modular_commands.api.registry
Methods in dev.sympho.modular_commands.api.registry with type parameters of type HandlersModifier and TypeMethodDescriptionRegistry.findCommand
(Invocation invocation, Class<H> type) Retrieves the best command known to this registry that has the given parent and name, and is compatible with the given type.<H extends Handlers>
Collection<Command<? extends H>>Registry.getCommands
(Class<H> type) Retrieves all commands known to this registry that are compatible with the given type. -
Uses of Handlers in dev.sympho.modular_commands.execute
Classes in dev.sympho.modular_commands.execute with type parameters of type HandlersModifier and TypeClassDescriptionclass
PipelineBuilder<E extends Event,
CTX extends InstrumentedContext & LazyContext, H extends Handlers, I extends SmartIterator<String>> Type responsible for building a command processing pipeline.Methods in dev.sympho.modular_commands.execute with type parameters of type HandlersModifier and TypeMethodDescriptionDetermines if a command has handlers compatible with the given type.static <H extends Handlers>
Tuple2<Invocation,List<Command<? extends H>>> InvocationUtils.parseInvocation
(Registry registry, SmartIterator<String> args, Class<H> commandType) Extracts an invocation from a sequence of args by performing lookups on the given registry, while building the corresponding execution chain. -
Uses of Handlers in dev.sympho.modular_commands.impl.registry
Methods in dev.sympho.modular_commands.impl.registry with type parameters of type HandlersModifier and TypeMethodDescriptionSimpleRegistry.findCommand
(Invocation invocation, Class<H> type) <H extends Handlers>
Collection<Command<? extends H>>SimpleRegistry.getCommands
(Class<H> type) -
Uses of Handlers in dev.sympho.modular_commands.utils
Methods in dev.sympho.modular_commands.utils with parameters of type HandlersModifier and TypeMethodDescriptionstatic void
CommandUtils.validateHandlers
(Handlers handlers) Validates the handlers of a command.