public final class

QualifiedTypeVisitor

extends EmptyClassVisitor
implements ClassSpaceVisitor
java.lang.Object
   ↳ org.sonatype.guice.bean.scanners.EmptyClassVisitor
     ↳ org.sonatype.guice.bean.scanners.QualifiedTypeVisitor

Class Overview

ClassSpaceVisitor that reports types annotated with Qualifier annotations.

Summary

Public Constructors
QualifiedTypeVisitor(QualifiedTypeListener listener)
Public Methods
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.
[Expand]
Inherited Methods
From class org.sonatype.guice.bean.scanners.EmptyClassVisitor
From class java.lang.Object
From interface org.sonatype.guice.bean.scanners.ClassSpaceVisitor
From interface org.sonatype.guice.bean.scanners.asm.ClassVisitor

Public Constructors

public QualifiedTypeVisitor (QualifiedTypeListener listener)

Public Methods

public void visit (ClassSpace _space)

Visits the start of the class space.

Parameters
_space The class space

public void visit (int version, int access, String name, String signature, String superName, String[] interfaces)

Visits the header of the class.

Parameters
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 Type#getInternalName() 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 Type#getInternalName() 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 Type#getInternalName() getInternalName). May be null.

public AnnotationVisitor visitAnnotation (String desc, boolean visible)

Visits an annotation of the class.

Parameters
desc the class descriptor of the annotation class.
visible true if the annotation is visible at runtime.
Returns
  • a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.

public ClassVisitor visitClass (URL url)

Visits a class resource in the class space.

Parameters
url The class resource URL
Returns
  • Class visitor; null if this visitor is not interested in visiting the class

public void visitEnd ()

Visits the end of the class. This method, which is the last one to be called, is used to inform the visitor that all the fields and methods of the class have been visited.