public abstract class ContextMethodAwareMethodAdapter extends org.objectweb.asm.MethodVisitor
MethodAdapter
that:
className
,methodName
and methodSignature
of method currently being instrumented/analyzedAbstractFindTouchPointsClassInstrumenter.lineIdGenerator
to every LINENUMBER asm instruction foundModifier and Type | Field and Description |
---|---|
protected java.lang.String |
className |
protected int |
lastLineId
What was the last lineId assigned.
|
protected java.util.concurrent.atomic.AtomicInteger |
lineIdGenerator
Generator that assigns unique (in scope of single class) identifiers to every LINENUMBER asm derective.
|
protected java.lang.String |
methodName |
protected java.lang.String |
methodSignature |
Constructor and Description |
---|
ContextMethodAwareMethodAdapter(org.objectweb.asm.MethodVisitor mv,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodSignature,
java.util.concurrent.atomic.AtomicInteger lineIdGenerator) |
Modifier and Type | Method and Description |
---|---|
void |
visitLineNumber(int number,
org.objectweb.asm.Label label) |
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
protected final java.lang.String className
protected final java.lang.String methodName
protected final java.lang.String methodSignature
protected int lastLineId
protected final java.util.concurrent.atomic.AtomicInteger lineIdGenerator
We will use this 'generator' to provide this identifiers. Remember to acquire identifiers using AtomicInteger.incrementAndGet()
(not AtomicInteger.getAndIncrement()
!!!)
public ContextMethodAwareMethodAdapter(org.objectweb.asm.MethodVisitor mv, java.lang.String className, java.lang.String methodName, java.lang.String methodSignature, java.util.concurrent.atomic.AtomicInteger lineIdGenerator)
public void visitLineNumber(int number, org.objectweb.asm.Label label)
visitLineNumber
in class org.objectweb.asm.MethodVisitor