org.jacoco.core.internal.flow
Class MethodProbesAdapter

java.lang.Object
  extended by org.objectweb.asm.MethodAdapter
      extended by org.jacoco.core.internal.flow.MethodProbesAdapter
All Implemented Interfaces:
org.objectweb.asm.MethodVisitor

public final class MethodProbesAdapter
extends org.objectweb.asm.MethodAdapter

Adapter that creates additional visitor events for probes to be inserted into a method.


Field Summary
 
Fields inherited from class org.objectweb.asm.MethodAdapter
mv
 
Constructor Summary
MethodProbesAdapter(IMethodProbesVisitor probesVisitor, IProbeIdGenerator idGenerator)
          Create a new adapter instance.
 
Method Summary
 void visitInsn(int opcode)
           
 void visitJumpInsn(int opcode, org.objectweb.asm.Label label)
           
 void visitLabel(org.objectweb.asm.Label label)
           
 void visitLookupSwitchInsn(org.objectweb.asm.Label dflt, int[] keys, org.objectweb.asm.Label[] labels)
           
 void visitTableSwitchInsn(int min, int max, org.objectweb.asm.Label dflt, org.objectweb.asm.Label[] labels)
           
 
Methods inherited from class org.objectweb.asm.MethodAdapter
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitIntInsn, visitLdcInsn, visitLineNumber, visitLocalVariable, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTryCatchBlock, visitTypeInsn, visitVarInsn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodProbesAdapter

public MethodProbesAdapter(IMethodProbesVisitor probesVisitor,
                           IProbeIdGenerator idGenerator)
Create a new adapter instance.

Parameters:
probesVisitor - visitor to delegate to
idGenerator - generator for unique probe ids
Method Detail

visitLabel

public void visitLabel(org.objectweb.asm.Label label)
Specified by:
visitLabel in interface org.objectweb.asm.MethodVisitor
Overrides:
visitLabel in class org.objectweb.asm.MethodAdapter

visitInsn

public void visitInsn(int opcode)
Specified by:
visitInsn in interface org.objectweb.asm.MethodVisitor
Overrides:
visitInsn in class org.objectweb.asm.MethodAdapter

visitJumpInsn

public void visitJumpInsn(int opcode,
                          org.objectweb.asm.Label label)
Specified by:
visitJumpInsn in interface org.objectweb.asm.MethodVisitor
Overrides:
visitJumpInsn in class org.objectweb.asm.MethodAdapter

visitLookupSwitchInsn

public void visitLookupSwitchInsn(org.objectweb.asm.Label dflt,
                                  int[] keys,
                                  org.objectweb.asm.Label[] labels)
Specified by:
visitLookupSwitchInsn in interface org.objectweb.asm.MethodVisitor
Overrides:
visitLookupSwitchInsn in class org.objectweb.asm.MethodAdapter

visitTableSwitchInsn

public void visitTableSwitchInsn(int min,
                                 int max,
                                 org.objectweb.asm.Label dflt,
                                 org.objectweb.asm.Label[] labels)
Specified by:
visitTableSwitchInsn in interface org.objectweb.asm.MethodVisitor
Overrides:
visitTableSwitchInsn in class org.objectweb.asm.MethodAdapter


Copyright © 2009-2011 Mountainminds GmbH & Co. KG. All Rights Reserved.