public class AnnotatedClassScanner
extends javax.lang.model.util.ElementScanner6<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>
| Modifier and Type | Field and Description | 
|---|---|
private java.util.Set<java.lang.String> | 
annotatedClasses
List of annotated classes to be returned. 
 | 
private static java.lang.String | 
LANG_PREFIX
Package prefix to be ignored for scanning. 
 | 
private static java.lang.String | 
UTIL_PREFIX
Package prefix to be ignored for scanning. 
 | 
private java.util.Set<java.lang.String> | 
visitedClasses
List of visited classes (prevents cyclic scanning). 
 | 
| Constructor and Description | 
|---|
AnnotatedClassScanner()
Creates new instance of AnnotatedClassScanner visitor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
private boolean | 
isAnnotated(javax.lang.model.element.TypeElement aElement,
Checks if type element (class) is annotated with given annotation
 (either directly or using meta-annotation). 
 | 
java.util.Set<java.lang.String> | 
visitExecutable(javax.lang.model.element.ExecutableElement aElement,
Visits executable element. 
 | 
java.util.Set<java.lang.String> | 
visitType(javax.lang.model.element.TypeElement aElement,
Visits type element. 
 | 
private void | 
visitTypeMirror(javax.lang.model.type.TypeMirror aType,
Visits type mirror. 
 | 
java.util.Set<java.lang.String> | 
visitVariable(javax.lang.model.element.VariableElement aElement,
Visits variable element. 
 | 
scan, scan, scan, visitPackage, visitTypeParametervisitType in interface javax.lang.model.element.ElementVisitor<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>visitType in class javax.lang.model.util.ElementScanner6<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>aElement - Visited elementaAnnotation - Annotation to be looked forvisitExecutable in interface javax.lang.model.element.ElementVisitor<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>visitExecutable in class javax.lang.model.util.ElementScanner6<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>aElement - Visited elementaAnnotation - Annotation to be looked forvisitVariable in interface javax.lang.model.element.ElementVisitor<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>visitVariable in class javax.lang.model.util.ElementScanner6<java.util.Set<java.lang.String>,java.lang.Class<? extends java.lang.annotation.Annotation>>aElement - Visited elementaAnnotation - Annotation to be looked foraType - Visited typeaAnnotation - Annotation to be looked foraElement - Element to be checkedaAnnotation - Annotation to be looked for