Search in sources :

Example 1 with ModelValidator

use of org.androidannotations.internal.process.ModelValidator 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;
}
Also used : AnnotationElements(org.androidannotations.internal.model.AnnotationElements) ModelValidator(org.androidannotations.internal.process.ModelValidator)

Aggregations

AnnotationElements (org.androidannotations.internal.model.AnnotationElements)1 ModelValidator (org.androidannotations.internal.process.ModelValidator)1