Class AnnotatedHierarchyVisitor

java.lang.Object
org.objectweb.asm.ClassVisitor
org.elasticsearch.plugin.scanner.AnnotatedHierarchyVisitor

public class AnnotatedHierarchyVisitor extends org.objectweb.asm.ClassVisitor
An ASM class visitor that captures the class hierarchy, as well as finds a specific annotation.
  • Field Summary

    Fields inherited from class org.objectweb.asm.ClassVisitor

    api, cv
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a mapping of class name to subclasses of that class
    void
    visit(int version, int access, String name, String signature, String superName, String[] interfaces)
     
    org.objectweb.asm.AnnotationVisitor
    visitAnnotation(String descriptor, boolean visible)
     

    Methods inherited from class org.objectweb.asm.ClassVisitor

    getDelegate, visitAttribute, visitEnd, 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
  • Method Details

    • visit

      public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
      Overrides:
      visit in class org.objectweb.asm.ClassVisitor
    • visitAnnotation

      public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
      Overrides:
      visitAnnotation in class org.objectweb.asm.ClassVisitor
    • getClassHierarchy

      public Map<String,Set<String>> getClassHierarchy()
      Returns a mapping of class name to subclasses of that class