Class ParserRegistryImpl<SENDER>
java.lang.Object
dev.rollczi.litecommands.argument.parser.ParserRegistryImpl<SENDER>
- All Implemented Interfaces:
ParserChainAccessor<SENDER>,ParserRegistry<SENDER>
public class ParserRegistryImpl<SENDER>
extends Object
implements ParserRegistry<SENDER>, ParserChainAccessor<SENDER>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParserOrNull(Argument<T> argument) getParserSet(Class<T> parserType, ArgumentKey key) <T> ParseResult<T> parse(Invocation<SENDER> invocation, Argument<T> argument, RawInput input) <T> voidregisterParser(TypeRange<T> typeRange, ArgumentKey key, Parser<SENDER, T> parser) <T> voidregisterParser(TypeRange<T> typeRange, ArgumentKey key, ParserChained<SENDER, T> parser) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.argument.parser.ParserChainAccessor
parse, parse, parseMethods inherited from interface dev.rollczi.litecommands.argument.parser.ParserRegistry
getParser, registerParser
-
Constructor Details
-
ParserRegistryImpl
public ParserRegistryImpl()
-
-
Method Details
-
registerParser
- Specified by:
registerParserin interfaceParserRegistry<SENDER>
-
registerParser
public <T> void registerParser(TypeRange<T> typeRange, ArgumentKey key, ParserChained<SENDER, T> parser) - Specified by:
registerParserin interfaceParserRegistry<SENDER>
-
getParserSet
- Specified by:
getParserSetin interfaceParserRegistry<SENDER>
-
getParser
- Specified by:
getParserin interfaceParserRegistry<SENDER>
-
getParserOrNull
- Specified by:
getParserOrNullin interfaceParserRegistry<SENDER>
-
parse
public <T> ParseResult<T> parse(Invocation<SENDER> invocation, Argument<T> argument, RawInput input) - Specified by:
parsein interfaceParserChainAccessor<SENDER>
-