Interface PackageElementVisitor<A>
- Type Parameters:
A- The annotation required on the package orObjectfor any package.
- All Superinterfaces:
Ordered, Toggleable
- All Known Implementing Classes:
IntrospectedPackageElementVisitor, PackageConfigurationImportVisitor
The visitor of the package elements.
- Since:
- 4.10
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault StringRetrieves the annotation name associated with the package.default TypeElementVisitor.VisitorKinddefault voidvisitPackage(PackageElement element, VisitorContext context) Executed when a package is encountered that matches the <E> generic.Methods inherited from interface Toggleable
isEnabled
-
Method Details
-
visitPackage
default void visitPackage(PackageElement element, VisitorContext context) throws ProcessingException Executed when a package is encountered that matches the <E> generic.- Parameters:
element- The package elementcontext- The visitor context- Throws:
ProcessingException
-
getSupportedAnnotationNames
-
getVisitorKind
- Returns:
- The visitor kind.
-
getPackageAnnotationName
Retrieves the annotation name associated with the package.- Returns:
- The fully qualified name of the annotation class as a string.
-