Uses of Interface
dev.sympho.modular_commands.api.command.parameter.parse.StringParser
Packages that use StringParser
Package
Description
Interfaces defining how received arguments are parsed.
Parsing utilities.
-
Uses of StringParser in dev.sympho.modular_commands.api.command.parameter.parse
Subinterfaces of StringParser in dev.sympho.modular_commands.api.command.parameter.parseModifier and TypeInterfaceDescriptioninterface
ListParser<T extends @NonNull Object>
A parser that extracts lists of objects by splitting a string argument and parsing each item.Methods in dev.sympho.modular_commands.api.command.parameter.parse that return StringParserModifier and TypeMethodDescriptionstatic <E extends @NonNull Enum<E>>
StringParser<E>Creates a parser that receives an enum value.static StringParser<String>
Parsers.string()
Creates a parser that receives plain string values.static StringParser<String>
Parsers.string
(@Nullable @IntRange(from=0L,to=6000L) Integer minLength, @Nullable @IntRange(from=1L,to=6000L) Integer maxLength) Creates a parser that receives plain string values.static StringParser<String>
Parsers.string
(@MinLen(1) List<ChoicesParser.Choice<String>> choices) Creates a parser that receives plain string values from within a set of choices.static StringParser<String>
Parsers.string
(ChoicesParser.Choice<String> @MinLen(1) ... choices) Creates a parser that receives plain string values from within a set of choices.static <T extends @NonNull Object>
StringParser<T>Parsers.string
(ParserFunction<String, T> parser) Creates a parser that uses the given function to parse received values.static <T extends @NonNull Object>
StringParser<T>Parsers.string
(ParserFunction<String, T> parser, @Nullable @IntRange(from=0L,to=6000L) Integer minLength, @Nullable @IntRange(from=1L,to=6000L) Integer maxLength) Creates a parser that uses the given function to parse received values.static <T extends @NonNull Object>
StringParser<T>Parsers.stringChoice
(@MinLen(1) List<Map.Entry<ChoicesParser.Choice<String>, T>> choices) Creates a parser that receives a value from within a set of choices.static <T extends @NonNull Object>
StringParser<T>Parsers.stringChoice
(Map.Entry<ChoicesParser.Choice<String>, T> @MinLen(1) ... choices) Creates a parser that receives a value from within a set of choices.static StringParser<String>
Parsers.text()
Creates a parser that receives plain string values.static StringParser<String>
Parsers.text
(@Nullable @IntRange(from=0L,to=6000L) Integer minLength, @Nullable @IntRange(from=1L,to=6000L) Integer maxLength) Creates a parser that receives plain string values.static <T extends @NonNull Object>
StringParser<T>Parsers.text
(ParserFunction<String, T> parser) Creates a parser that uses the given function to parse received values.static <T extends @NonNull Object>
StringParser<T>Parsers.text
(ParserFunction<String, T> parser, @Nullable @IntRange(from=0L,to=6000L) Integer minLength, @Nullable @IntRange(from=1L,to=6000L) Integer maxLength) Creates a parser that uses the given function to parse received values. -
Uses of StringParser in dev.sympho.modular_commands.utils.parse
Methods in dev.sympho.modular_commands.utils.parse that return StringParserModifier and TypeMethodDescriptionstatic <T extends @NonNull Object>
StringParser<Flux<T>>ParseUtils.flux
(ParserFunction<String, Mono<T>> parser) A parser that generates a flux by using the defaultlist parser
to split the raw argument, then the given item parser to convert each item into a mono, which are then merged.