Uses of Interface
dev.sympho.modular_commands.api.command.Command
Packages that use Command
Package
Description
External interface through which client code can utilize the command system.
Exceptions thrown by the system.
Registry system for registering commands that can be executed.
Runtime system for executing commands defined through the API.
Internal implementation-specific classes.
Default implementations for registries.
Collection of classes that provide assorted utilies for ease of use.
Builders for various types.
-
Uses of Command in dev.sympho.modular_commands.api
Methods in dev.sympho.modular_commands.api that return types with arguments of type CommandModifier and TypeMethodDescriptionCommandGroup.commands()Retrieves the commands contained in this group, keyed by their IDs.Method parameters in dev.sympho.modular_commands.api with type arguments of type CommandModifier and TypeMethodDescriptionstatic CommandGroupCreates a command group from the given mappings. -
Uses of Command in dev.sympho.modular_commands.api.exception
Methods in dev.sympho.modular_commands.api.exception that return CommandModifier and TypeMethodDescriptionCommand<?>IncompleteHandlingException.getCommand()Retrieves the command that was invoked.Methods in dev.sympho.modular_commands.api.exception that return types with arguments of type CommandModifier and TypeMethodDescriptionIncompleteHandlingException.getExecutionChain()Retrieves the command chain that was being executed.Constructors in dev.sympho.modular_commands.api.exception with parameters of type CommandModifierConstructorDescriptionInvalidChainException(Command<?> command, Command<?> parent, String message) Creates a new instance.Constructor parameters in dev.sympho.modular_commands.api.exception with type arguments of type CommandModifierConstructorDescriptionIncompleteHandlingException(List<? extends Command<?>> chain, Invocation invocation) Creates a new instance. -
Uses of Command in dev.sympho.modular_commands.api.registry
Methods in dev.sympho.modular_commands.api.registry that return CommandModifier 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.Registry.getCommand(String id) Retrieves the command with the given ID that is registered to this registry.Registry.removeCommand(String id) Removes a command from this registry that was registered with the given ID.Methods in dev.sympho.modular_commands.api.registry that return types with arguments of type CommandModifier and TypeMethodDescription<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.Methods in dev.sympho.modular_commands.api.registry with parameters of type CommandModifier and TypeMethodDescriptionbooleanRegistry.registerCommand(String id, Command<?> command) Registers a command into this registry. -
Uses of Command in dev.sympho.modular_commands.execute
Methods in dev.sympho.modular_commands.execute with type parameters of type CommandModifier and TypeMethodDescriptionstatic <C extends Command<?>>
CInvocationUtils.getInvokedCommand(List<? extends C> chain) Extracts the command being invoked from an execution chain.InvocationUtils.getSettingsSource(List<C> chain) Determines the command in the execution chain that should provide the invocation settings.Methods in dev.sympho.modular_commands.execute that return CommandModifier and TypeMethodDescriptionDetermines if a command has handlers compatible with the given type.Methods in dev.sympho.modular_commands.execute that return types with arguments of type CommandModifier and TypeMethodDescriptionstatic <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.Methods in dev.sympho.modular_commands.execute with parameters of type CommandModifier and TypeMethodDescriptionDetermines if a command has handlers compatible with the given type.protected abstract CTXPipelineBuilder.makeContext(E event, Command<? extends H> command, Invocation invocation, I args) Creates a command context from a parsed invocation.Method parameters in dev.sympho.modular_commands.execute with type arguments of type CommandModifier and TypeMethodDescriptionInvocationUtils.accumulateGroups(List<? extends Command<?>> chain) Determines the total set of groups required for an execution chain.static <H extends Handlers,C extends CommandContext>
List<InvocationHandler<? super C>>InvocationUtils.accumulateHandlers(List<? extends Command<? extends H>> chain, Function<H, InvocationHandler<? super C>> getter) Determines the sequence of invocation handlers to execute.InvocationValidator.validateAccess(AccessValidator validator, List<? extends Command<?>> chain) Validates that the user that invoked a command has sufficient access to do so.InvocationValidator.validateSettings(E event, List<? extends Command<?>> chain) Validates that a command invocation is appropriate as per the command's settings. -
Uses of Command in dev.sympho.modular_commands.impl
Classes in dev.sympho.modular_commands.impl that implement CommandModifier and TypeClassDescriptionfinal recordCommandImpl<H extends Handlers>Default implementation of an interaction-based command. -
Uses of Command in dev.sympho.modular_commands.impl.registry
Methods in dev.sympho.modular_commands.impl.registry that return CommandModifier and TypeMethodDescriptionSimpleRegistry.findCommand(Invocation invocation, Class<H> type) SimpleRegistry.getCommand(String id) SimpleRegistry.removeCommand(String id) Methods in dev.sympho.modular_commands.impl.registry that return types with arguments of type CommandModifier and TypeMethodDescription<H extends Handlers>
Collection<Command<? extends H>>SimpleRegistry.getCommands(Class<H> type) Methods in dev.sympho.modular_commands.impl.registry with parameters of type CommandModifier and TypeMethodDescriptionbooleanSimpleRegistry.registerCommand(String id, Command<?> command) -
Uses of Command in dev.sympho.modular_commands.utils
Methods in dev.sympho.modular_commands.utils with type parameters of type CommandModifier and TypeMethodDescriptionstatic <C extends Command<?>>
CCommandUtils.validateCommand(C command) Validates a command. -
Uses of Command in dev.sympho.modular_commands.utils.builder
Methods in dev.sympho.modular_commands.utils.builder that return CommandMethods in dev.sympho.modular_commands.utils.builder with parameters of type CommandModifier and TypeMethodDescriptionstatic <H extends Handlers>
CommandBuilder<H>Constructs a new builder that is initialized to make a copy of the given command.