|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.instr.MethodAnalyzer
public final class MethodAnalyzer
This IBlockMethodVisitor
analyzes the block structure of a method and
reports it to a IMethodStructureVisitor
instance.
Constructor Summary | |
---|---|
MethodAnalyzer(IMethodStructureVisitor structureVisitor)
Creates a new analyzer that reports to the given IMethodStructureVisitor instance. |
Method Summary | |
---|---|
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
|
AnnotationVisitor |
visitAnnotationDefault()
|
void |
visitAttribute(Attribute attr)
|
void |
visitBlockEnd(int id)
This method is always called after the last instruction of a block. |
void |
visitBlockEndBeforeJump(int id)
This method is called at the end of a block. |
void |
visitCode()
|
void |
visitEnd()
|
void |
visitFieldInsn(int opcode,
String owner,
String name,
String desc)
|
void |
visitFrame(int type,
int local,
Object[] local2,
int stack,
Object[] stack2)
|
void |
visitIincInsn(int var,
int increment)
|
void |
visitInsn(int opcode)
|
void |
visitIntInsn(int opcode,
int operand)
|
void |
visitJumpInsn(int opcode,
Label label)
|
void |
visitLabel(Label label)
|
void |
visitLdcInsn(Object cst)
|
void |
visitLineNumber(int line,
Label start)
|
void |
visitLocalVariable(String name,
String desc,
String signature,
Label start,
Label end,
int index)
|
void |
visitLookupSwitchInsn(Label dflt,
int[] keys,
Label[] labels)
|
void |
visitMaxs(int maxStack,
int maxLocals)
|
void |
visitMethodInsn(int opcode,
String owner,
String name,
String desc)
|
void |
visitMultiANewArrayInsn(String desc,
int dims)
|
AnnotationVisitor |
visitParameterAnnotation(int parameter,
String desc,
boolean visible)
|
void |
visitTableSwitchInsn(int min,
int max,
Label dflt,
Label[] labels)
|
void |
visitTryCatchBlock(Label start,
Label end,
Label handler,
String type)
|
void |
visitTypeInsn(int opcode,
String type)
|
void |
visitVarInsn(int opcode,
int var)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodAnalyzer(IMethodStructureVisitor structureVisitor)
IMethodStructureVisitor
instance.
structureVisitor
- consumer for method structure eventsMethod Detail |
---|
public AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation
in interface MethodVisitor
public AnnotationVisitor visitAnnotationDefault()
visitAnnotationDefault
in interface MethodVisitor
public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible)
visitParameterAnnotation
in interface MethodVisitor
public void visitAttribute(Attribute attr)
visitAttribute
in interface MethodVisitor
public void visitCode()
visitCode
in interface MethodVisitor
public void visitFrame(int type, int local, Object[] local2, int stack, Object[] stack2)
visitFrame
in interface MethodVisitor
public void visitLabel(Label label)
visitLabel
in interface MethodVisitor
public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index)
visitLocalVariable
in interface MethodVisitor
public void visitTryCatchBlock(Label start, Label end, Label handler, String type)
visitTryCatchBlock
in interface MethodVisitor
public void visitMaxs(int maxStack, int maxLocals)
visitMaxs
in interface MethodVisitor
public void visitLineNumber(int line, Label start)
visitLineNumber
in interface MethodVisitor
public void visitInsn(int opcode)
visitInsn
in interface MethodVisitor
public void visitJumpInsn(int opcode, Label label)
visitJumpInsn
in interface MethodVisitor
public void visitFieldInsn(int opcode, String owner, String name, String desc)
visitFieldInsn
in interface MethodVisitor
public void visitIincInsn(int var, int increment)
visitIincInsn
in interface MethodVisitor
public void visitIntInsn(int opcode, int operand)
visitIntInsn
in interface MethodVisitor
public void visitLdcInsn(Object cst)
visitLdcInsn
in interface MethodVisitor
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
visitLookupSwitchInsn
in interface MethodVisitor
public void visitMethodInsn(int opcode, String owner, String name, String desc)
visitMethodInsn
in interface MethodVisitor
public void visitMultiANewArrayInsn(String desc, int dims)
visitMultiANewArrayInsn
in interface MethodVisitor
public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels)
visitTableSwitchInsn
in interface MethodVisitor
public void visitTypeInsn(int opcode, String type)
visitTypeInsn
in interface MethodVisitor
public void visitVarInsn(int opcode, int var)
visitVarInsn
in interface MethodVisitor
public void visitEnd()
visitEnd
in interface MethodVisitor
public void visitBlockEndBeforeJump(int id)
IBlockMethodVisitor
visitBlockEndBeforeJump
in interface IBlockMethodVisitor
id
- identifier of the block within the methodpublic void visitBlockEnd(int id)
IBlockMethodVisitor
visitBlockEnd
in interface IBlockMethodVisitor
id
- identifier of the block within the method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |