public boolean analyzeSecondRound ( Set < ? extends TypeElement > annotations , RoundEnvironment roundEnv ) { parseBindType ( roundEnv ) ; // Put all @BindTable elements in beanElements for ( Element item : roundEnv . getElementsAnnotatedWith ( BindSqlType . class ) ) { if ( item . getKind ( ) != ElementKind . CLASS ) { String msg = String . format ( "%s %s, only class can be annotated with @%s annotation" , item . getKind ( ) , item , BindSqlType . class . getSimpleName ( ) ) ; throw ( new InvalidKindForAnnotationException ( msg ) ) ; } globalBeanElements . put ( item . toString ( ) , ( TypeElement ) item ) ; } // generate dao Set < ? extends Element > generatedDaos = roundEnv . getElementsAnnotatedWith ( BindGeneratedDao . class ) ; for ( Element item : generatedDaos ) { String keyToReplace = AnnotationUtility . extractAsClassName ( item , BindGeneratedDao . class , AnnotationAttributeType . DAO ) ; globalDaoElements . put ( keyToReplace , ( TypeElement ) item ) ; globalDaoGenerated . add ( keyToReplace ) ; } return false ; }
Analyze second round .