Class AnnotatedCommandProvider
java.lang.Object
com.github.alex1304.ultimategdbot.api.command.CommandProvider
com.github.alex1304.ultimategdbot.api.command.annotated.AnnotatedCommandProvider
public class AnnotatedCommandProvider extends CommandProvider
-
Constructor Summary
Constructors Constructor Description AnnotatedCommandProvider()
-
Method Summary
Modifier and Type Method Description void
addAnnotated(Object annotated)
Builds and adds a new command based on the given annotated object.void
addParamConverter(ParamConverter<?> converter)
Adds a new param converter to this annotated command provider.Methods inherited from class com.github.alex1304.ultimategdbot.api.command.CommandProvider
add, getCommandByAlias, getErrorHandler, getProvidedCommands, provideFromEvent, setErrorHandler, toString
-
Constructor Details
-
AnnotatedCommandProvider
public AnnotatedCommandProvider()
-
-
Method Details
-
addParamConverter
Adds a new param converter to this annotated command provider.- Parameters:
converter
- the converter to add
-
addAnnotated
Builds and adds a new command based on the given annotated object.- Parameters:
annotated
- the annotated object to add- Throws:
InvalidAnnotatedObjectException
- if the annotated object is malformed.
-