Class VisitsAnnotationProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
ca.hedlund.dp.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 for
    invalid @link
    VisitorAdapter
  • 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
    invalid @link
    VisitorAdapter