Class ImportAnnotationClassVisitor


  • class ImportAnnotationClassVisitor
    extends org.objectweb.asm.ClassVisitor
    Scan a class for native methods with Import annotations.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​ImportAnnotation> annotations  
      private java.lang.String className  
      • Fields inherited from class org.objectweb.asm.ClassVisitor

        api, cv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.objectweb.asm.MethodVisitor visitMethod​(int access, java.lang.String name, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptions)
      • Methods inherited from class org.objectweb.asm.ClassVisitor

        getDelegate, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, 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
    • Field Detail

      • className

        private java.lang.String className
      • annotations

        private java.util.Map<java.lang.String,​ImportAnnotation> annotations
    • Constructor Detail

      • ImportAnnotationClassVisitor

        ImportAnnotationClassVisitor​(java.lang.String className,
                                     java.util.Map<java.lang.String,​ImportAnnotation> annotations)
        Create an instance.
        Parameters:
        className - the name of the class in the internal form of fully qualified class. For example, "java/util/List".
        annotations - container for found annotations, key is method name with signature
    • Method Detail

      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int access,
                                                           java.lang.String name,
                                                           java.lang.String descriptor,
                                                           java.lang.String signature,
                                                           java.lang.String[] exceptions)
        Overrides:
        visitMethod in class org.objectweb.asm.ClassVisitor