Class BaseCommandProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.github.projectunified.craftcommand.processor.BaseCommandProcessor
- All Implemented Interfaces:
Processor
- Direct Known Subclasses:
BukkitCommandProcessor,PaperCommandProcessor,StandaloneCommandProcessor
Dispatches annotated classes to the two halves of the pipeline: the parser builds a
CommandModel, the
generator writes the wrapper.
A platform processor only implements getGeneratorFactory(); all code generation lives in its
CommandGenerator.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CommandGeneratorFactoryThe factory creating this platform's generator.voidinit(ProcessingEnvironment processingEnv) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
BaseCommandProcessor
public BaseCommandProcessor()
-
-
Method Details
-
getGeneratorFactory
The factory creating this platform's generator. -
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-