Package foo.zaaarf.routecartographer
Class RouteCartographer
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- foo.zaaarf.routecartographer.RouteCartographer
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
@SupportedSourceVersion(RELEASE_8) public class RouteCartographer extends javax.annotation.processing.AbstractProcessor
The main processor class.
-
-
Constructor Summary
Constructors Constructor Description RouteCartographer()
Default constructor, it only initialisesannotationClasses
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getSupportedAnnotationTypes()
boolean
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment env)
Processes Spring's annotations, NOT claiming them for itself.
-
-
-
Method Detail
-
process
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment env)
Processes Spring's annotations, NOT claiming them for itself. It builds aRoute
object for each route and adds it tofoundRoutes
, then proceeds to print it to a file.- Specified by:
process
in interfacejavax.annotation.processing.Processor
- Specified by:
process
in classjavax.annotation.processing.AbstractProcessor
- Parameters:
annotations
- the annotation types requested to be processedenv
- environment for information about the current and prior round- Returns:
- false, letting other processor process the annotations again
-
getSupportedAnnotationTypes
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interfacejavax.annotation.processing.Processor
- Overrides:
getSupportedAnnotationTypes
in classjavax.annotation.processing.AbstractProcessor
- Returns:
- the types of annotations supported by this processor
-
-