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
ConstructorsConstructorDescriptionMethodOffsetClassVisitor
(int api, org.objectweb.asm.ClassReader classReader, org.objectweb.asm.ClassWriter classWriter) Constructs a newMethodOffsetClassVisitor
. -
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
Constructor Details
-
MethodOffsetClassVisitor
public MethodOffsetClassVisitor(int api, org.objectweb.asm.ClassReader classReader, org.objectweb.asm.ClassWriter classWriter) Constructs a newMethodOffsetClassVisitor
.- Parameters:
api
- which ASM api set to useclassReader
- the ClassReader to useclassWriter
- the ClassWriter to use
-
-
Method Details