Class AnnotatedModuleCompilerImpl
java.lang.Object
com.jagrosh.jdautilities.command.impl.AnnotatedModuleCompilerImpl
- All Implemented Interfaces:
AnnotatedModuleCompiler
Default implementation for
AnnotatedModuleCompiler
.- Since:
- 1.8
- Author:
- Kaidan Gustave
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AnnotatedModuleCompilerImpl
public AnnotatedModuleCompilerImpl()
-
-
Method Details
-
compile
Description copied from interface:AnnotatedModuleCompiler
Compiles one or moreCommand
s using method annotations as for properties from the specifiedObject
.This Object must be annotated with
@JDACommand.Module
!- Specified by:
compile
in interfaceAnnotatedModuleCompiler
- Parameters:
o
- The Object, annotated with@JDACommand.Module
.- Returns:
- A
List
of Commands generated from the provided Object
-