Class Visitor


  • public class Visitor
    extends org.objectweb.asm.ClassVisitor
    This visitor is the main magic of deep. It deals with install the callbacks into the user code, based on the tracepoints.
    • Field Detail

      • CALLBACK_CLASS

        public static final Class<?> CALLBACK_CLASS
    • Constructor Detail

      • Visitor

        public Visitor​(org.objectweb.asm.ClassVisitor v,
                       Collection<TracePointConfig> bps,
                       boolean isCf)
        Create a new visitor.
        Parameters:
        v - the asm visitor that calls this
        bps - the tracepoints we want to install
        isCf - is this a cf class
    • Method Detail

      • wasChanged

        public boolean wasChanged()
      • visit

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

        public void visitSource​(String source,
                                String debug)
        Overrides:
        visitSource in class org.objectweb.asm.ClassVisitor
      • visitMethod

        public org.objectweb.asm.MethodVisitor visitMethod​(int access,
                                                           String name,
                                                           String desc,
                                                           String signature,
                                                           String[] exps)
        Overrides:
        visitMethod in class org.objectweb.asm.ClassVisitor
      • visitEnd

        public void visitEnd()
        Overrides:
        visitEnd in class org.objectweb.asm.ClassVisitor