use of org.androidannotations.internal.model.AnnotationElements in project androidannotations by androidannotations.
the class AndroidAnnotationProcessor method processThrowing.
private void processThrowing(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) throws Exception {
if (nothingToDo(annotations, roundEnv)) {
return;
}
AnnotationElementsHolder extractedModel = extractAnnotations(annotations, roundEnv);
AnnotationElementsHolder validatingHolder = extractedModel.validatingHolder();
androidAnnotationsEnv.setValidatedElements(validatingHolder);
try {
AndroidManifest androidManifest = extractAndroidManifest();
LOGGER.info("AndroidManifest.xml found: {}", androidManifest);
IRClass rClass = findRClasses(androidManifest);
androidAnnotationsEnv.setAndroidEnvironment(rClass, androidManifest);
} catch (Exception e) {
return;
}
AnnotationElements validatedModel = validateAnnotations(extractedModel, validatingHolder);
ModelProcessor.ProcessResult processResult = processAnnotations(validatedModel);
generateSources(processResult);
}
use of org.androidannotations.internal.model.AnnotationElements in project androidannotations by androidannotations.
the class AndroidAnnotationProcessor method validateAnnotations.
private AnnotationElements validateAnnotations(AnnotationElements extractedModel, AnnotationElementsHolder validatingHolder) throws ValidationException {
timeStats.start("Validate Annotations");
ModelValidator modelValidator = new ModelValidator(androidAnnotationsEnv);
AnnotationElements validatedAnnotations = modelValidator.validate(extractedModel, validatingHolder);
timeStats.stop("Validate Annotations");
return validatedAnnotations;
}
Aggregations