Uses of Interface
dev.sympho.modular_commands.api.command.context.CommandContext
Packages that use CommandContext
Package
Description
Interfaces that represent the invocation context of a command.
Handler interfaces used across the system.
Interfaces defining how received arguments are parsed.
Runtime system for executing commands defined through the API.
Implementations for command contexts.
Parsing utilities.
-
Uses of CommandContext in dev.sympho.modular_commands.api.command.context
Subinterfaces of CommandContext in dev.sympho.modular_commands.api.command.contextModifier and TypeInterfaceDescriptioninterfaceThe execution context of an command invoked through an interaction (application command).interfaceThe execution context of an command invoked through a message.interfaceThe execution context of an command invoked through a slash command. -
Uses of CommandContext in dev.sympho.modular_commands.api.command.handler
Classes in dev.sympho.modular_commands.api.command.handler with type parameters of type CommandContextModifier and TypeInterfaceDescriptioninterfaceInvocationHandler<C extends @NonNull CommandContext>A function that handles the execution of a command.interfaceResultHandler<C extends @NonNull CommandContext>A function that handles the result of a command.Methods in dev.sympho.modular_commands.api.command.handler that return types with arguments of type CommandContextModifier and TypeMethodDescriptionTextHandlers.Impl.invocation()Returns the value of theinvocationrecord component.TextHandlers.invocation()List<? extends ResultHandler<CommandContext>>TextHandlers.Impl.result()Returns the value of theresultrecord component.List<? extends ResultHandler<CommandContext>>TextHandlers.result()Method parameters in dev.sympho.modular_commands.api.command.handler with type arguments of type CommandContextModifier and TypeMethodDescriptionstatic TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation) Creates a handler set with the given handlers, with support only for text-based commands, and no result handlers.static TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation, ResultHandler<CommandContext>... result) Creates a handler set with the given handlers, with support for text-based commands.static TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates a handler set with the given handlers, with support for text-based commands.static TextHandlersHandlers.text(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates a handler set with the given handlers, with support for text-based commands.Constructor parameters in dev.sympho.modular_commands.api.command.handler with type arguments of type CommandContextModifierConstructorDescriptionImpl(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates an instance of aImplrecord class.Impl(InvocationHandler<CommandContext> invocation, List<? extends ResultHandler<CommandContext>> result) Creates an instance of aImplrecord class. -
Uses of CommandContext in dev.sympho.modular_commands.api.command.parameter.parse
Methods in dev.sympho.modular_commands.api.command.parameter.parse with parameters of type CommandContextModifier and TypeMethodDescriptionParserFunction.apply(CommandContext context, R raw) ArgumentParser.parse(CommandContext context, R raw) AttachmentParserStages.Parser.parse(CommandContext context, reactor.netty.http.client.HttpClientResponse response, reactor.netty.ByteBufMono body) Parses the response from fetching the attachment file into the corresponding value.ParserFunction.parse(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.ParserFunction.PostParser.parse(CommandContext context, R raw) Parsers.Functor.parse(CommandContext context, R raw) Parsers.Simple.parse(CommandContext context, R raw) Parsers.Synchronous.parse(CommandContext context, R raw) TextFileParser.parse(CommandContext context, String content) Parses the content of the attachment file.TextFileParser.parse(CommandContext context, reactor.netty.http.client.HttpClientResponse response, reactor.netty.ByteBufMono body) ArgumentParser.parseArgument(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.AttachmentDataParser.parseArgument(CommandContext context, Attachment raw) ListParser.parseArgument(CommandContext context, String raw) ListParser.parseItem(CommandContext context, String raw) Parses an individual item in the list.Parsers.Synchronous.parseNow(CommandContext context, R raw) Parses the given raw argument from the user into the corresponding value.Parsers.raw(CommandContext context, R raw) Returns the raw value received. -
Uses of CommandContext in dev.sympho.modular_commands.execute
Classes in dev.sympho.modular_commands.execute with type parameters of type CommandContextModifier and TypeClassDescriptionclassPipelineBuilder<E extends Event,CTX extends CommandContext & LazyContext, H extends Handlers, I extends SmartIterator<String>> Type responsible for building a command processing pipeline.Subinterfaces of CommandContext in dev.sympho.modular_commands.executeModifier and TypeInterfaceDescriptioninterfaceA command context whose values (particularly arguments) are lazy-loaded (that is, are not loaded until requested byLazyContext.initialize()andLazyContext.load()).Fields in dev.sympho.modular_commands.execute with type parameters of type CommandContextModifier and TypeFieldDescriptionstatic final ResultHandler<CommandContext>BaseHandler.DEFAULTThe initial/default base handler.Methods in dev.sympho.modular_commands.execute with type parameters of type CommandContextModifier and TypeMethodDescriptionstatic <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.Methods in dev.sympho.modular_commands.execute that return types with arguments of type CommandContextModifier and TypeMethodDescriptionstatic ResultHandler<CommandContext>BaseHandler.get()Retrieves the current base handler.Method parameters in dev.sympho.modular_commands.execute with type arguments of type CommandContextModifier and TypeMethodDescriptionstatic voidBaseHandler.set(ResultHandler<CommandContext> handler) Sets the base handler. -
Uses of CommandContext in dev.sympho.modular_commands.impl.context
Classes in dev.sympho.modular_commands.impl.context that implement CommandContextModifier and TypeClassDescriptionfinal classContext object for invocations performed through text messages. -
Uses of CommandContext in dev.sympho.modular_commands.utils.parse
Methods in dev.sympho.modular_commands.utils.parse with parameters of type CommandContextModifier and TypeMethodDescriptionRawParser.channel(CommandContext context, Class<C> type) Creates a parser for channels with the given context.ChannelParser.getEntity(CommandContext context, Snowflake id) EntityParser.getEntity(CommandContext context, Snowflake id) Retrieves the entity with the given ID.MessageParser.getEntity(CommandContext context, Snowflake id) RoleParser.getEntity(CommandContext context, Snowflake id) UserParser.getEntity(CommandContext context, Snowflake id) RawParser.message(CommandContext context) Creates a parser for messages with the given context.EntityParser.parse(CommandContext context, String raw) EntityUrlParser.parse(CommandContext context, URL url) FunctorUrlParser.parse(CommandContext context, URL url) RoleParser.parse(CommandContext context, String raw) StringAdapter.parse(CommandContext context, String raw) default Mono<TryParser.Result<R,T>> TryParser.parse(CommandContext context, R item) UrlParser.ChoiceBase.parse(CommandContext context, URL url) UrlParser.parse(CommandContext context, String raw) UrlParser.parse(CommandContext context, URL url) Parses the given URL.UrlParser.PostParser.parse(CommandContext context, URL url) RawParser.role(CommandContext context) Creates a parser for roles with the given context.RawParser.user(CommandContext context) Creates a parser for users with the given context.