org.sonatype.guice.bean.scanners
Class QualifiedTypeVisitor

java.lang.Object
  extended by org.sonatype.guice.bean.scanners.EmptyClassVisitor
      extended by org.sonatype.guice.bean.scanners.QualifiedTypeVisitor
All Implemented Interfaces:
ClassVisitor, ClassSpaceVisitor

public final class QualifiedTypeVisitor
extends EmptyClassVisitor
implements ClassSpaceVisitor

ClassSpaceVisitor that reports types annotated with Qualifier annotations.


Constructor Summary
QualifiedTypeVisitor(QualifiedTypeListener listener)
           
 
Method Summary
 void visit(ClassSpace _space)
          Visits the start of the class space.
 void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
          Visits the header of the class.
 AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
          Visits an annotation of the class.
 ClassVisitor visitClass(java.net.URL url)
          Visits a class resource in the class space.
 
Methods inherited from class org.sonatype.guice.bean.scanners.EmptyClassVisitor
visitAttribute, visitEnd, visitField, visitInnerClass, visitMethod, visitOuterClass, visitSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sonatype.guice.bean.scanners.ClassSpaceVisitor
visitEnd
 

Constructor Detail

QualifiedTypeVisitor

public QualifiedTypeVisitor(QualifiedTypeListener listener)
Method Detail

visit

public void visit(ClassSpace _space)
Description copied from interface: ClassSpaceVisitor
Visits the start of the class space.

Specified by:
visit in interface ClassSpaceVisitor
Parameters:
_space - The class space

visitClass

public ClassVisitor visitClass(java.net.URL url)
Description copied from interface: ClassSpaceVisitor
Visits a class resource in the class space.

Specified by:
visitClass in interface ClassSpaceVisitor
Parameters:
url - The class resource URL
Returns:
Class visitor; null if this visitor is not interested in visiting the class

visit

public void visit(int version,
                  int access,
                  java.lang.String name,
                  java.lang.String signature,
                  java.lang.String superName,
                  java.lang.String[] interfaces)
Description copied from interface: ClassVisitor
Visits the header of the class.

Specified by:
visit in interface ClassVisitor
Overrides:
visit in class EmptyClassVisitor
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 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.

visitAnnotation

public AnnotationVisitor visitAnnotation(java.lang.String desc,
                                         boolean visible)
Description copied from interface: ClassVisitor
Visits an annotation of the class.

Specified by:
visitAnnotation in interface ClassVisitor
Overrides:
visitAnnotation in class EmptyClassVisitor
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.


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.