Interface PackageElementVisitor<A>

Type Parameters:
A - The annotation required on the package or Object for any package.
All Superinterfaces:
Ordered, Toggleable
All Known Implementing Classes:
IntrospectedPackageElementVisitor, PackageConfigurationImportVisitor

public interface PackageElementVisitor<A> extends Ordered, Toggleable
The visitor of the package elements.
Since:
4.10
Author:
Denis Stepanov
  • Method Details

    • visitPackage

      default void visitPackage(@NonNull PackageElement element, @NonNull VisitorContext context) throws ProcessingException
      Executed when a package is encountered that matches the <E> generic.
      Parameters:
      element - The package element
      context - The visitor context
      Throws:
      ProcessingException
    • getSupportedAnnotationNames

      default @NonNull Set<String> getSupportedAnnotationNames()
      Returns:
      The supported default annotation names.
    • getVisitorKind

      default @NonNull TypeElementVisitor.VisitorKind getVisitorKind()
      Returns:
      The visitor kind.
    • getPackageAnnotationName

      default @NonNull String getPackageAnnotationName()
      Retrieves the annotation name associated with the package.
      Returns:
      The fully qualified name of the annotation class as a string.