Class SignedGreedyStringParser<C>
java.lang.Object
org.incendo.cloud.minecraft.signed.SignedGreedyStringParser<C>
- Type Parameters:
C- command sender type
- All Implemented Interfaces:
ArgumentParser<C,,SignedString> ArgumentParser.FutureArgumentParser<C,,SignedString> ParserDescriptor<C,,SignedString> SuggestionProviderHolder<C>
@DefaultQualifier(org.checkerframework.checker.nullness.qual.NonNull.class)
public final class SignedGreedyStringParser<C>
extends Object
implements ArgumentParser.FutureArgumentParser<C,SignedString>, ParserDescriptor<C,SignedString>
Parser for signed greedy strings.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.parser.ArgumentParser
ArgumentParser.FutureArgumentParser<C,T> -
Method Summary
Modifier and TypeMethodDescriptionparseFuture(CommandContext<C> commandContext, CommandInput commandInput) parser()static <C> SignedGreedyStringParser<C> Creates aSignedGreedyStringParserwith the defaultmapper.static <C> SignedGreedyStringParser<C> Creates aSignedGreedyStringParserwith the specifiedmapper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.incendo.cloud.parser.ArgumentParser
flatMap, flatMapSuccess, mapSuccess, suggestionProviderMethods inherited from interface org.incendo.cloud.parser.ArgumentParser.FutureArgumentParser
parseMethods inherited from interface org.incendo.cloud.parser.ParserDescriptor
flatMap, flatMap, flatMapSuccess, flatMapSuccess, mapSuccess, mapSuccess
-
Method Details
-
signedGreedyStringParser
Creates aSignedGreedyStringParserwith the specifiedmapper.- Type Parameters:
C- command sender type- Parameters:
mapper- signed string mapper- Returns:
- parser
-
signedGreedyStringParser
Creates aSignedGreedyStringParserwith the defaultmapper.- Type Parameters:
C- command sender type- Returns:
- parser
-
parseFuture
public CompletableFuture<ArgumentParseResult<SignedString>> parseFuture(CommandContext<C> commandContext, CommandInput commandInput) - Specified by:
parseFuturein interfaceArgumentParser<C,SignedString> - Specified by:
parseFuturein interfaceArgumentParser.FutureArgumentParser<C,SignedString>
-
parser
- Specified by:
parserin interfaceParserDescriptor<C,SignedString>
-
valueType
- Specified by:
valueTypein interfaceParserDescriptor<C,SignedString>
-