Class AccumulationVisitor

  • All Implemented Interfaces:
    com.sun.source.tree.TreeVisitor<java.lang.Void,​java.lang.Void>
    Direct Known Subclasses:
    CalledMethodsVisitor

    public class AccumulationVisitor
    extends BaseTypeVisitor<AccumulationAnnotatedTypeFactory>
    The visitor for an accumulation checker. Issues predicate.invalid errors if the user writes an invalid predicate.
    • Constructor Detail

      • AccumulationVisitor

        public AccumulationVisitor​(BaseTypeChecker checker)
        Constructor matching super.
        Parameters:
        checker - the checker
    • Method Detail

      • visitAnnotation

        public java.lang.Void visitAnnotation​(com.sun.source.tree.AnnotationTree tree,
                                              java.lang.Void p)
        Checks each predicate annotation to make sure the predicate is well-formed.
        Specified by:
        visitAnnotation in interface com.sun.source.tree.TreeVisitor<java.lang.Void,​java.lang.Void>
        Overrides:
        visitAnnotation in class BaseTypeVisitor<AccumulationAnnotatedTypeFactory>