Package ca.phon.visitor.annotation
Class VisitsAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
ca.phon.visitor.annotation.VisitsAnnotationProcessor
- All Implemented Interfaces:
Processor
@SupportedSourceVersion(RELEASE_6)
@SupportedAnnotationTypes("ca.phon.visitor.annotation.Visits")
public class VisitsAnnotationProcessor
extends AbstractProcessor
Annotation processor for the Visits
annotation.
This processor ensures that the following holds true:
- The class which using the
Visits
annotation is a sub-class forVisitorAdapter
- The method has one argument of the type declared by the
Visits
annotation - The object declarsed visitable by the annotation is a sub-class
of the parameterized type of
VisitorAdapter
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
Constructor Details
-
VisitsAnnotationProcessor
public VisitsAnnotationProcessor()
-
-
Method Details
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-