Uses of Record Class
dev.sympho.modular_commands.api.command.Invocation
Packages that use Invocation
Package
Description
APIs related to defining a command.
Interfaces that represent the invocation context of a command.
Exceptions thrown by the system.
Registry system for registering commands that can be executed.
Runtime system for executing commands defined through the API.
Implementations for command contexts.
Default implementations for registries.
Collection of classes that provide assorted utilies for ease of use.
-
Uses of Invocation in dev.sympho.modular_commands.api.command
Fields in dev.sympho.modular_commands.api.command declared as InvocationMethods in dev.sympho.modular_commands.api.command that return InvocationModifier and TypeMethodDescriptionDetermines the invocation formed by adding the given command name to this invocation.default Invocation
Command.invocation()
The invocation that executes this command.static Invocation
Constructs an invocation from the given sequence of command names.static Invocation
Constructs an invocation from the given sequence of command names.default Invocation
Command.parent()
The parent of the command.Invocation.parent()
Determines the parent invocation of this chain.Methods in dev.sympho.modular_commands.api.command that return types with arguments of type InvocationModifier and TypeMethodDescriptiondefault Set<Invocation>
Command.aliasInvocations()
The alias invocations that may also invoke the command. -
Uses of Invocation in dev.sympho.modular_commands.api.command.context
Methods in dev.sympho.modular_commands.api.command.context that return InvocationModifier and TypeMethodDescriptionCommandContext.getCommandInvocation()
Retrieves the canonical invocation of the triggered command, that is, the value ofCommand.invocation()
.CommandContext.getInvocation()
Retrieves the invocation that triggered the command. -
Uses of Invocation in dev.sympho.modular_commands.api.exception
Methods in dev.sympho.modular_commands.api.exception that return InvocationModifier and TypeMethodDescriptionInvalidChainException.getCommand()
Retrieves the command that was being executed.IncompleteHandlingException.getInvocation()
Retrieves the invocation that triggered the command.InvalidChainException.getParent()
Retrieves the ancestor that is incompatible.Constructors in dev.sympho.modular_commands.api.exception with parameters of type InvocationModifierConstructorDescriptionIncompleteHandlingException
(List<? extends Command<?>> chain, Invocation invocation) Creates a new instance. -
Uses of Invocation in dev.sympho.modular_commands.api.registry
Methods in dev.sympho.modular_commands.api.registry with parameters of type InvocationModifier 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. -
Uses of Invocation in dev.sympho.modular_commands.execute
Methods in dev.sympho.modular_commands.execute that return types with arguments of type InvocationModifier 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 InvocationModifier and TypeMethodDescriptionprotected abstract CTX
PipelineBuilder.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 InvocationModifier and TypeMethodDescriptionstatic AliasProvider
AliasProvider.of
(Collection<? extends Map.Entry<Invocation, Invocation>> aliases) Creates an alias provider with the given aliases.static AliasProvider
AliasProvider.of
(Collection<? extends Map.Entry<Invocation, Invocation>> aliases) Creates an alias provider with the given aliases.static AliasProvider
AliasProvider.of
(Map<Invocation, Invocation> aliases) Creates an alias provider with the given aliases.static AliasProvider
AliasProvider.of
(Map<Invocation, Invocation> aliases) Creates an alias provider with the given aliases. -
Uses of Invocation in dev.sympho.modular_commands.impl.context
Constructors in dev.sympho.modular_commands.impl.context with parameters of type InvocationModifierConstructorDescriptionMessageContextImpl
(MessageCreateEvent event, Invocation invocation, Command<?> command, StringSplitter.Async.Iterator args, AccessValidator access) Initializes a new context. -
Uses of Invocation in dev.sympho.modular_commands.impl.registry
Methods in dev.sympho.modular_commands.impl.registry with parameters of type InvocationModifier and TypeMethodDescriptionSimpleRegistry.findCommand
(Invocation invocation, Class<H> type) -
Uses of Invocation in dev.sympho.modular_commands.utils
Methods in dev.sympho.modular_commands.utils with parameters of type InvocationModifier and TypeMethodDescriptionstatic void
CommandUtils.validateParent
(Invocation parent) Validates the parent of a command.