Class ServiceLocatorTestRule.Visitor

java.lang.Object
org.objectweb.asm.ClassVisitor
org.jvnet.hk2.testing.junit.internal.ClassVisitorImpl
org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.Visitor
Enclosing class:
ServiceLocatorTestRule<T>

private static final class ServiceLocatorTestRule.Visitor extends ClassVisitorImpl
A very, very special-purpose ClassVisitorImpl suitable only for use by the ServiceLocatorTestRule class to determine efficiently whether a given Class is annotated with Service or not.
Since:
2.4.0-b33
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Set<Class<?>>
    A Set of Classes that will be added to by the visitAnnotation(String, boolean) method.
    private String
    The fully qualified class name of the Class being visited.

    Fields inherited from class org.objectweb.asm.ClassVisitor

    api, cv
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Visitor(Set<Class<?>> classes, boolean verbose)
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    visit(int version, int access, String name, String signature, String superName, String[] interfaces)
    Called when a class file is encountered and internally records its fully qualified class name.
    final org.objectweb.asm.AnnotationVisitor
    visitAnnotation(String annotationClassDescriptor, boolean visible)
    If the supplied annotationClassDescriptor is equal to "Lorg/jvnet/hk2/annotations/Service;", and if the supplied visible parameter is true, attempts to load the Class encountered in the prior (guaranteed) call to the visit(int, int, String, String, String, String[]) method, and, if that is successful, adds the resulting Class to the invalid input: '{@linkplain ServiceLocatorTestRule.Visitor#ServiceLocatorTestRule.Visitor(Set, boolean)' Set of Classes that was supplied at construction time}.
    final void
    Does nothing when invoked.

    Methods inherited from class org.objectweb.asm.ClassVisitor

    getDelegate, visitAttribute, visitField, visitInnerClass, visitMethod, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait