public interface AnnotatedModuleCompiler
Object
s that uses Annotation
s
as helpers for creating Command
s.
Previous to version 1.6 all Commands required the Command abstract class to be extended in source. The primary issue that came with this was that Commands were restricted to that method of creation, offering no support for popular means such as annotated commands.
Since 1.6 the introduction of CommandBuilder
has allowed the potential to create unique Command
objects after compilation.
The primary duty of this class is to provide a "in runtime" converter for generics that are annotated with
the JDACommand.Module
Modifier and Type | Method and Description |
---|---|
java.util.List<Command> |
compile(java.lang.Object o)
Compiles one or more
Command s
using method annotations as for properties from the specified Object . |
java.util.List<Command> compile(java.lang.Object o)
Command
s
using method annotations as for properties from the specified Object
.
This Object must be annotated with @JDACommand.Module
!
o
- The Object, annotated with @JDACommand.Module
.List
of Commands generated from the provided Object