public void check ( ) throws FatalCompileTimeException { HashSet declsToCheck = new HashSet ( ) ; // // First, build up the Set of declarations to check. We don't want any duplicates. // for ( int i = 0 ; i < _atds . length ; ++ i ) { AnnotationTypeDeclaration atd = _atds [ i ] ; Declaration [ ] decls = getAnnotationProcessorEnvironment ( ) . getDeclarationsAnnotatedWith ( atd ) ; for ( int j = 0 ; j < decls . length ; j ++ ) { declsToCheck . add ( decls [ j ] ) ; } } // Now, check the declarations. check ( declsToCheck ) ; }
Performs semantic validation of input Declarations that are annotated with annotations claimed by this CoreAnnotationProcessor .