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.
Internal implementation-specific classes.
Implementations for command contexts.
Default implementations for registries.
Collection of classes that provide assorted utilies for ease of use.
Builders for various types.
-
Uses of Invocation in dev.sympho.modular_commands.api.command
Methods 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 InvocationCommand.invocation()The invocation that executes this command.static InvocationConstructs an invocation from the given sequence of command names.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.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 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 InvocationModifier and TypeMethodDescriptionstatic AliasProviderAliasProvider.of(Collection<? extends Map.Entry<Invocation, Invocation>> aliases) Creates an alias provider with the given aliases.static AliasProviderAliasProvider.of(Collection<? extends Map.Entry<Invocation, Invocation>> aliases) Creates an alias provider with the given aliases.static AliasProviderAliasProvider.of(Map<Invocation, Invocation> aliases) Creates an alias provider with the given aliases.static AliasProviderAliasProvider.of(Map<Invocation, Invocation> aliases) Creates an alias provider with the given aliases. -
Uses of Invocation in dev.sympho.modular_commands.impl
Methods in dev.sympho.modular_commands.impl that return InvocationModifier and TypeMethodDescriptionCommandImpl.parent()Returns the value of theparentrecord component.Constructors in dev.sympho.modular_commands.impl with parameters of type InvocationModifierConstructorDescriptionCommandImpl(Command.Scope scope, boolean callable, Invocation parent, @MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String name, Set<@MatchesRegex("(?U)^[-_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String> aliases, @MatchesRegex("(?U)^[ -_\\p{L}\\p{N}\\p{sc=Deva}\\p{sc=Thai}]{1,32}+$") String displayName, @MatchesRegex("(?Us)^.{1,100}+$") String description, List<Parameter<?>> parameters, Group requiredGroup, boolean skipGroupCheckOnInteraction, boolean requireParentGroups, boolean nsfw, boolean privateReply, ReplyManager.EphemeralType ephemeralReply, boolean inheritSettings, boolean invokeParent, H handlers) Initializes a new instance. -
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, List<Parameter<?>> parameters, 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 that return InvocationModifier and TypeMethodDescriptionstatic InvocationCommandUtils.validateParent(Invocation parent) Validates the parent of a command.Methods in dev.sympho.modular_commands.utils with parameters of type InvocationModifier and TypeMethodDescriptionstatic InvocationCommandUtils.validateParent(Invocation parent) Validates the parent of a command. -
Uses of Invocation in dev.sympho.modular_commands.utils.builder
Fields in dev.sympho.modular_commands.utils.builder declared as InvocationMethods in dev.sympho.modular_commands.utils.builder with parameters of type InvocationModifier and TypeMethodDescriptionCommandBuilder.withParent(@Nullable Invocation parent) Sets the parent command.