com.atlassian.clover.api.instrumentation
Interface InstrumentationSession


public interface InstrumentationSession


Method Summary
 com.cenqua.clover.registry.BranchInfo addBranch(com.cenqua.clover.context.ContextSet context, SourceInfo region, boolean instrumented, int complexity, LanguageConstruct construct)
           
 com.cenqua.clover.registry.StatementInfo addStatement(com.cenqua.clover.context.ContextSet context, SourceInfo region, int complexity, LanguageConstruct construct)
           
 void close()
           
 ClassInfo enterClass(java.lang.String name, SourceInfo region, boolean isInterface, boolean isEnum, boolean isAnnotation)
           
 FileInfo enterFile(java.lang.String packageName, java.io.File file, int lineCount, int ncLineCount, long timestamp, long filesize, long checksum)
           
 MethodInfo enterMethod(com.cenqua.clover.context.ContextSet context, SourceInfo region, com.cenqua.clover.registry.MethodSignature signature, boolean test, int complexity, LanguageConstruct construct)
           
 PackageInfo enterPackage(java.lang.String name)
           
 ClassInfo exitClass(int endLine, int endCol)
           
 void exitFile()
           
 void exitMethod(int endLine, int endCol)
           
 void exitPackage()
           
 ClassInfo getCurrentClass()
           
 FileInfo getCurrentFile()
           
 int getCurrentFileMaxIndex()
           
 int getCurrentIndex()
           
 MethodInfo getCurrentMethod()
           
 int getCurrentOffsetFromFile()
           
 PackageInfo getCurrentPackage()
           
 long getEndTS()
           
 long getStartTs()
           
 long getVersion()
           
 void setSourceEncoding(java.lang.String encoding)
           
 

Method Detail

enterPackage

PackageInfo enterPackage(java.lang.String name)

exitPackage

void exitPackage()

enterFile

FileInfo enterFile(java.lang.String packageName,
                   java.io.File file,
                   int lineCount,
                   int ncLineCount,
                   long timestamp,
                   long filesize,
                   long checksum)

exitFile

void exitFile()

enterClass

ClassInfo enterClass(java.lang.String name,
                     SourceInfo region,
                     boolean isInterface,
                     boolean isEnum,
                     boolean isAnnotation)

exitClass

ClassInfo exitClass(int endLine,
                    int endCol)

enterMethod

MethodInfo enterMethod(com.cenqua.clover.context.ContextSet context,
                       SourceInfo region,
                       com.cenqua.clover.registry.MethodSignature signature,
                       boolean test,
                       int complexity,
                       LanguageConstruct construct)

exitMethod

void exitMethod(int endLine,
                int endCol)

addStatement

com.cenqua.clover.registry.StatementInfo addStatement(com.cenqua.clover.context.ContextSet context,
                                                      SourceInfo region,
                                                      int complexity,
                                                      LanguageConstruct construct)

addBranch

com.cenqua.clover.registry.BranchInfo addBranch(com.cenqua.clover.context.ContextSet context,
                                                SourceInfo region,
                                                boolean instrumented,
                                                int complexity,
                                                LanguageConstruct construct)

setSourceEncoding

void setSourceEncoding(java.lang.String encoding)

getCurrentIndex

int getCurrentIndex()

getCurrentFileMaxIndex

int getCurrentFileMaxIndex()

getCurrentOffsetFromFile

int getCurrentOffsetFromFile()

getStartTs

long getStartTs()

getEndTS

long getEndTS()

getVersion

long getVersion()

getCurrentFile

FileInfo getCurrentFile()

getCurrentPackage

PackageInfo getCurrentPackage()

getCurrentClass

ClassInfo getCurrentClass()

getCurrentMethod

MethodInfo getCurrentMethod()

close

void close()
           throws ConcurrentInstrumentationException
Throws:
ConcurrentInstrumentationException