Interface ValidationParticipant<T extends NamedElement>

Type Parameters:
T - the type which this processor validates.
All Known Implementing Classes:
AbstractAnnotationTypeProcessor, AbstractClassProcessor, AbstractConstructorProcessor, AbstractEnumerationTypeProcessor, AbstractFieldProcessor, AbstractInterfaceProcessor, AbstractMethodProcessor

@Beta public interface ValidationParticipant<T extends NamedElement>
A callback interface for the validation phase. This callback is invoked after all transformations are done. Inferred TypeReferences are resolved at that time, so it is safe to inspect them. The AST is read-only in this phase.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doValidate(List<? extends T> annotatedTargetElements, ValidationContext context)
    Invoked by the validator
  • Method Details

    • doValidate

      void doValidate(List<? extends T> annotatedTargetElements, @Extension ValidationContext context)
      Invoked by the validator
      Parameters:
      annotatedTargetElements - the java representation of the annotated elements
      context - a ValidationContext providing useful services.