org.jacoco.core.data
Interface IClassStructureVisitor


public interface IClassStructureVisitor

Interface for data output of the internal structure of a single class. This interface is meant to be implemented by parties that want to retrieve data from the instrumentation process.

Version:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Method Summary
 void visit(String name, String signature, String superName, String[] interfaces)
          Called once to report the class name, signature, superclass name and names of implemented/extended interfaces.
 void visitEnd()
          Signals the end of this class structure.
 IMethodStructureVisitor visitMethodStructure(String name, String desc, String signature)
          Called for every instrumented method.
 void visitSourceFile(String name)
          The source file name might be reported through this method call.
 

Method Detail

visit

void visit(String name,
           String signature,
           String superName,
           String[] interfaces)
Called once to report the class name, signature, superclass name and names of implemented/extended interfaces.

Parameters:
name - VM name of the class
signature - VM signature of the class
superName - VM name of the super class
interfaces - VM names of extended/implemented interfaces

visitSourceFile

void visitSourceFile(String name)
The source file name might be reported through this method call.

Parameters:
name - name of the corresponding source file

visitMethodStructure

IMethodStructureVisitor visitMethodStructure(String name,
                                             String desc,
                                             String signature)
Called for every instrumented method.

Parameters:
name - name of the method
desc - parameter and return value description
signature - generic signature or null
Returns:
call-back for structure details about the method

visitEnd

void visitEnd()
Signals the end of this class structure.