public final class QualifiedTypeVisitor extends EmptyClassVisitor implements ClassSpaceVisitor
ClassSpaceVisitor that reports types annotated with Qualifier annotations.| Constructor and Description |
|---|
QualifiedTypeVisitor(QualifiedTypeListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
visit(ClassSpace _space)
Visits the start of the class space.
|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
Visits the header of the class.
|
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Visits an annotation of the class.
|
ClassVisitor |
visitClass(URL url)
Visits a class resource in the class space.
|
void |
visitEnd()
Visits the end of the class.
|
visitAttribute, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSourcepublic QualifiedTypeVisitor(QualifiedTypeListener listener)
public void visit(ClassSpace _space)
ClassSpaceVisitorvisit in interface ClassSpaceVisitor_space - The class spacepublic ClassVisitor visitClass(URL url)
ClassSpaceVisitorvisitClass in interface ClassSpaceVisitorurl - The class resource URLnull if this visitor is not interested in visiting the classpublic void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
ClassVisitorvisit in interface ClassVisitorvisit in class EmptyClassVisitorversion - the class version.access - the class's access flags (see Opcodes). This
parameter also indicates if the class is deprecated.name - the internal name of the class (see
getInternalName).signature - the signature of this class. May be null if
the class is not a generic one, and does not extend or implement
generic classes or interfaces.superName - the internal of name of the super class (see
getInternalName). For interfaces,
the super class is Object. May be null, but
only for the Object class.interfaces - the internal names of the class's interfaces (see
getInternalName). May be
null.public AnnotationVisitor visitAnnotation(String desc, boolean visible)
ClassVisitorvisitAnnotation in interface ClassVisitorvisitAnnotation in class EmptyClassVisitordesc - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.public void visitEnd()
ClassVisitorvisitEnd in interface ClassVisitorvisitEnd in interface ClassSpaceVisitorvisitEnd in class EmptyClassVisitorCopyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.