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
Visitsannotation is a sub-class forVisitorAdapter - The method has one argument of the type declared by the
Visitsannotation - 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(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:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-