Class MethodOffsetClassVisitor

java.lang.Object
org.objectweb.asm.ClassVisitor
org.checkerframework.afu.annotator.scanner.MethodOffsetClassVisitor

public class MethodOffsetClassVisitor extends org.objectweb.asm.ClassVisitor
MethodOffsetClassVisitor is a class visitor that should be passed to ASM's ClassReader in order to retrieve extra information about method offsets needed by all of the org.checkerframework.afu.annotator.scanner classes. This visitor should visit every class that is to be annotated, and should be done before trying to match elements in the tree to the various criterion.
  • Field Summary

    Fields inherited from class org.objectweb.asm.ClassVisitor

    api, cv
  • Constructor Summary

    Constructors
    Constructor
    Description
    MethodOffsetClassVisitor(int api, org.objectweb.asm.ClassReader classReader, org.objectweb.asm.ClassWriter classWriter)
    Constructs a new MethodOffsetClassVisitor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.MethodVisitor
    visitMethod(int access, String name, String descriptor, String signature, 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
  • Constructor Details

    • MethodOffsetClassVisitor

      public MethodOffsetClassVisitor(int api, org.objectweb.asm.ClassReader classReader, org.objectweb.asm.ClassWriter classWriter)
      Constructs a new MethodOffsetClassVisitor.
      Parameters:
      api - which ASM api set to use
      classReader - the ClassReader to use
      classWriter - the ClassWriter to use
  • Method Details

    • visitMethod

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