Package pro.projo.generation.interfaces
Class InterfaceTemplateProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
pro.projo.generation.ProjoProcessor
pro.projo.generation.interfaces.InterfaceTemplateProcessor
- All Implemented Interfaces:
Processor,TypeMirrorUtilities
@SupportedSourceVersion(RELEASE_8) @SupportedAnnotationTypes({"pro.projo.interfaces.annotation.Enum","pro.projo.interfaces.annotation.Enums","pro.projo.interfaces.annotation.Interface","pro.projo.interfaces.annotation.Interfaces"}) public class InterfaceTemplateProcessor extends ProjoProcessor
The
InterfaceTemplateProcessor is an annotation processor that, at compile time, detects source files
that have an @Interface/@Enum annotation and will use these sources for
generating synthetic interfaces/enums.- Author:
- Mirko Raner
-
Field Summary
-
Constructor Summary
Constructors Constructor Description InterfaceTemplateProcessor() -
Method Summary
Modifier and Type Method Description voidinit(ProcessingEnvironment environment)booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment round)Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pro.projo.generation.utilities.TypeMirrorUtilities
getMap, getType, getTypeMirror
-
Constructor Details
-
InterfaceTemplateProcessor
public InterfaceTemplateProcessor()
-
-
Method Details
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-