public class InstrumentationState extends Object implements TestDetector.SourceContext
| Constructor and Description |
|---|
InstrumentationState(InstrumentationSession session,
FullFileInfo fileInfo,
FileStructureInfo structure,
JavaInstrumentationConfig cfg) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areAnnotationsSupported() |
int |
getAutoCloseableClassCount() |
int |
getAutoCloseableInstanceCount() |
int |
getBoolIndex() |
JavaInstrumentationConfig |
getCfg() |
FullFileInfo |
getFileInfo() |
int |
getIncBoolIndex() |
ContextSet |
getInstrContext() |
Language |
getLanguage() |
String |
getRecorderPrefix() |
InstrumentationSession |
getSession() |
File |
getSourceFile() |
FileStructureInfo |
getStructure() |
TestDetector |
getTestDetector() |
boolean |
hasInstrumented() |
int |
incAutoCloseableClassCount() |
int |
incAutoCloseableInstanceCount() |
boolean |
isDetectTests() |
boolean |
isDirty() |
boolean |
isInstrEnabled() |
boolean |
isParameterizedJUnit5TestClass()
Returns true if during instrumentation if atleast one test method is annotated with ParameterizedTest annotation.
|
boolean |
isParameterizedJUnitTestClass()
Returns true if during instrumentation it was detected that it's a JUnit4 class
with @Parameterized annotation.
|
boolean |
isSpockTestClass()
Returns true if during instrumentation it was found that the class contains Spock framework's annotations
attached to the class.
|
boolean |
needsFlush() |
void |
setBoolIndex(int boolIndex) |
void |
setDetectTests(boolean detectTests) |
void |
setDirty() |
void |
setDirty(boolean dirty) |
void |
setHasInstrumented(boolean hasInstrumented) |
void |
setInstrContext(ContextSet instrContext) |
void |
setInstrEnabled(boolean instrEnabled) |
void |
setNeedsFlush(boolean needsFlush) |
void |
setParameterizedJUnit5TestClass(boolean parameterizedJUnit5TestClass) |
void |
setParameterizedJUnitTestClass(boolean parameterizedJUnitTestClass) |
void |
setRecorderPrefix(String recorderPrefix) |
void |
setSpockTestClass(boolean spockTestClass) |
public InstrumentationState(InstrumentationSession session, FullFileInfo fileInfo, FileStructureInfo structure, JavaInstrumentationConfig cfg)
public FullFileInfo getFileInfo()
public boolean isInstrEnabled()
public void setInstrEnabled(boolean instrEnabled)
public ContextSet getInstrContext()
public FileStructureInfo getStructure()
public int getBoolIndex()
public void setBoolIndex(int boolIndex)
public int getIncBoolIndex()
public InstrumentationSession getSession()
public String getRecorderPrefix()
public void setRecorderPrefix(String recorderPrefix)
public boolean needsFlush()
public void setNeedsFlush(boolean needsFlush)
public void setInstrContext(ContextSet instrContext)
public boolean isDirty()
public void setDirty()
public void setDirty(boolean dirty)
public boolean isDetectTests()
public void setDetectTests(boolean detectTests)
public TestDetector getTestDetector()
public JavaInstrumentationConfig getCfg()
public boolean hasInstrumented()
public void setHasInstrumented(boolean hasInstrumented)
public boolean areAnnotationsSupported()
areAnnotationsSupported in interface TestDetector.SourceContextpublic File getSourceFile()
getSourceFile in interface TestDetector.SourceContextpublic Language getLanguage()
getLanguage in interface TestDetector.SourceContextpublic int getAutoCloseableClassCount()
public int incAutoCloseableClassCount()
public int getAutoCloseableInstanceCount()
public int incAutoCloseableInstanceCount()
public boolean isSpockTestClass()
public void setSpockTestClass(boolean spockTestClass)
public boolean isParameterizedJUnitTestClass()
public void setParameterizedJUnitTestClass(boolean parameterizedJUnitTestClass)
public boolean isParameterizedJUnit5TestClass()
public void setParameterizedJUnit5TestClass(boolean parameterizedJUnit5TestClass)
Copyright © 2024 OpenClover.org. All rights reserved.