Class Visitor
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- com.intergral.deep.agent.tracepoint.inst.asm.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Visitor.InsnPrinter
This is used in a comment on line 509 and is left in place for debugging.
-
Field Summary
Fields Modifier and Type Field Description static Class<?>
CALLBACK_CLASS
-
Constructor Summary
Constructors Constructor Description Visitor(org.objectweb.asm.ClassVisitor v, Collection<TracePointConfig> bps, boolean isCf)
Create a new visitor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visit(int version, int access, String name, String signature, String superName, String[] interfaces)
void
visitEnd()
org.objectweb.asm.MethodVisitor
visitMethod(int access, String name, String desc, String signature, String[] exps)
void
visitSource(String source, String debug)
boolean
wasChanged()
-
-
-
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 thisbps
- the tracepoints we want to installisCf
- 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 classorg.objectweb.asm.ClassVisitor
-
visitSource
public void visitSource(String source, String debug)
- Overrides:
visitSource
in classorg.objectweb.asm.ClassVisitor
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exps)
- Overrides:
visitMethod
in classorg.objectweb.asm.ClassVisitor
-
visitEnd
public void visitEnd()
- Overrides:
visitEnd
in classorg.objectweb.asm.ClassVisitor
-
-