|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.asm.MethodAdapter
com.ikokoon.serenity.instrumentation.coverage.CoverageMethodAdapter
public class CoverageMethodAdapter
This class actually enhances the lines to call the collector class which gathers the data on the lines that are executed during the unit tests.
| Field Summary |
|---|
| Fields inherited from class org.objectweb.asm.MethodAdapter |
|---|
mv |
| Constructor Summary | |
|---|---|
CoverageMethodAdapter(org.objectweb.asm.MethodVisitor methodVisitor,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodDescription)
The constructor initialises a CoverageMethodAdapter that takes all the interesting items for the method that is to be enhanced
including the parent method visitor. |
|
| Method Summary | |
|---|---|
void |
visitLineNumber(int lineNumber,
org.objectweb.asm.Label label)
This is the method that actually adds the instructions to the enhanced class. |
| Methods inherited from class org.objectweb.asm.MethodAdapter |
|---|
visitAnnotation, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitIntInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLocalVariable, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMultiANewArrayInsn, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchBlock, visitTypeInsn, visitVarInsn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoverageMethodAdapter(org.objectweb.asm.MethodVisitor methodVisitor,
java.lang.String className,
java.lang.String methodName,
java.lang.String methodDescription)
CoverageMethodAdapter that takes all the interesting items for the method that is to be enhanced
including the parent method visitor.
methodVisitor - the method visitor of the parentclassName - the name of the class the method belongs tomethodName - the name of the methodmethodDescription - the description of the method| Method Detail |
|---|
public void visitLineNumber(int lineNumber,
org.objectweb.asm.Label label)
visitLineNumber in interface org.objectweb.asm.MethodVisitorvisitLineNumber in class org.objectweb.asm.MethodAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||