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, visitSource
public QualifiedTypeVisitor(QualifiedTypeListener listener)
public void visit(ClassSpace _space)
ClassSpaceVisitor
visit
in interface ClassSpaceVisitor
_space
- The class spacepublic ClassVisitor visitClass(URL url)
ClassSpaceVisitor
visitClass
in interface ClassSpaceVisitor
url
- 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)
ClassVisitor
visit
in interface ClassVisitor
visit
in class EmptyClassVisitor
version
- 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)
ClassVisitor
visitAnnotation
in interface ClassVisitor
visitAnnotation
in class EmptyClassVisitor
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public void visitEnd()
ClassVisitor
visitEnd
in interface ClassVisitor
visitEnd
in interface ClassSpaceVisitor
visitEnd
in class EmptyClassVisitor
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.