public class InstrumentationSessionImpl extends Object implements InstrumentationSession
| Modifier and Type | Class and Description |
|---|---|
static class |
InstrumentationSessionImpl.SessionPackageInfo
Tracks packages created in the current session and their counterparts in the model, if one exists
|
static class |
InstrumentationSessionImpl.Update |
| Constructor and Description |
|---|
InstrumentationSessionImpl(Clover2Registry reg,
String activeEncoding) |
public InstrumentationSessionImpl(Clover2Registry reg, String activeEncoding) throws CloverException
CloverExceptionpublic RegistryUpdate finishAndApply() throws ConcurrentInstrumentationException
public InstrumentationSessionImpl.Update finish()
public int getCurrentIndex()
getCurrentIndex in interface InstrumentationSessionpublic int getCurrentFileMaxIndex()
getCurrentFileMaxIndex in interface InstrumentationSessionpublic int getCurrentOffsetFromFile()
getCurrentOffsetFromFile in interface InstrumentationSessionpublic Clover2Registry getRegistry()
public FullFileInfo enterFile(String packageName, File file, int lineCount, int ncLineCount, long timestamp, long filesize, long checksum)
enterFile in interface InstrumentationSessionpublic void exitFile()
exitFile in interface InstrumentationSessionpublic FullClassInfo enterClass(String name, SourceInfo region, ModifiersInfo modifiers, boolean isInterface, boolean isEnum, boolean isAnnotation)
enterClass in interface InstrumentationSessionpublic FullClassInfo exitClass(int endLine, int endCol)
exitClass in interface InstrumentationSessionpublic FullMethodInfo enterMethod(ContextSet context, SourceInfo region, MethodSignature signature, boolean isTest, int complexity)
public FullMethodInfo enterMethod(@NotNull ContextSet context, @NotNull SourceInfo region, @NotNull MethodSignature signature, boolean isTest, @Nullable String staticTestName, boolean isLambda, int complexity, @NotNull LanguageConstruct construct)
enterMethod in interface InstrumentationSessionpublic FullMethodInfo enterMethod(ContextSet context, SourceInfo region, MethodSignature signature, boolean test)
public void exitMethod(int endLine,
int endCol)
exitMethod in interface InstrumentationSessionpublic FullStatementInfo addStatement(ContextSet context, SourceInfo region, int complexity)
public FullStatementInfo addStatement(ContextSet context, SourceInfo region, int complexity, LanguageConstruct construct)
addStatement in interface InstrumentationSessionpublic FullBranchInfo addBranch(ContextSet context, SourceInfo region, boolean instrumented, int complexity)
public FullBranchInfo addBranch(ContextSet context, SourceInfo region, boolean instrumented, int complexity, LanguageConstruct construct)
addBranch in interface InstrumentationSessionpublic void setSourceEncoding(String encoding)
setSourceEncoding in interface InstrumentationSessionpublic FullPackageInfo enterPackage(String name)
enterPackage in interface InstrumentationSessionpublic void exitPackage()
exitPackage in interface InstrumentationSessionpublic FullFileInfo getCurrentFile()
getCurrentFile in interface InstrumentationSessionpublic FullPackageInfo getCurrentPackage()
getCurrentPackage in interface InstrumentationSession@Nullable public FullClassInfo getCurrentClass()
getCurrentClass in interface InstrumentationSessionpublic void pushCurrentClass(FullClassInfo clazz)
public FullClassInfo popCurrentClass() throws IllegalStateException
IllegalStateException@Nullable public FullMethodInfo getCurrentMethod()
getCurrentMethod in interface InstrumentationSessionpublic void pushCurrentMethod(FullMethodInfo clazz)
public FullMethodInfo popCurrentMethod() throws IllegalStateException
IllegalStateExceptionpublic EntityContainer getCurrentContainer()
public void close()
throws ConcurrentInstrumentationException
close in interface InstrumentationSessionConcurrentInstrumentationExceptionpublic long getStartTs()
getStartTs in interface InstrumentationSessionpublic long getEndTS()
getEndTS in interface InstrumentationSessionpublic long getVersion()
getVersion in interface InstrumentationSessionCopyright © 2024 OpenClover.org. All rights reserved.