public class FullFileInfo extends BaseFileInfo implements CoverageDataReceptor, FileInfo, HasMetricsNode, TaggedPersistent
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,FullClassInfo> |
classes
classes declared inside the file
|
protected int |
dataIndex |
protected List<FullMethodInfo> |
methods
methods (functions) declared on the top-level of the file (e.g.
|
static long |
NO_VERSION |
protected List<FullStatementInfo> |
statements
statements declared inside the file on the top-level (e.g in scripts)
|
checksum, containingPackage, contextFilter, encoding, filesize, lineCount, metrics, name, ncLineCount, rawMetrics, timestamp| Constructor and Description |
|---|
FullFileInfo(FullPackageInfo containingPackage,
File actualFile,
String encoding,
int dataIndex,
int lineCount,
int ncLineCount,
long timestamp,
long filesize,
long checksum,
long minVersion) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(FullClassInfo classInfo) |
void |
addFailStackEntry(int lineNum,
StackTraceInfo.TraceEntry traceEntry) |
void |
addMethod(FullMethodInfo methodInfo) |
void |
addStatement(FullStatementInfo statementInfo) |
void |
addVersion(long version) |
void |
addVersions(long minVersion,
long maxVersion) |
boolean |
changedFrom(long checksum,
long filesize) |
FullFileInfo |
copy(FullPackageInfo pkg,
HasMetricsFilter filter) |
List<? extends ClassInfo> |
getAllClasses()
Returns list of all classes, including indirect descendants.
|
List<? extends MethodInfo> |
getAllMethods()
Returns list of all methods, including indirect descendants.
|
HasMetricsNode |
getChild(int i) |
String |
getChildType() |
List<? extends ClassInfo> |
getClasses()
Returns list of classes which are declared on a top-level of this source file (i.e.
|
int |
getDataIndex() |
int |
getDataLength() |
CoverageDataProvider |
getDataProvider() |
Map<Integer,List<StackTraceInfo.TraceEntry>> |
getFailStackEntries() |
int |
getIndexOfChild(HasMetricsNode child) |
Language |
getLanguage() |
LineInfo[] |
getLineInfo(boolean showLambdaFunctions,
boolean showInnerFunctions) |
LineInfo[] |
getLineInfo(int ensureLineCountAtLeast,
boolean showLambdaFunctions,
boolean showInnerFunctions) |
long |
getMaxVersion() |
List<? extends MethodInfo> |
getMethods()
Returns list of methods which are declared on a top-level of this source file.
|
BlockMetrics |
getMetrics() |
long |
getMinVersion() |
ClassInfo |
getNamedClass(String name) |
int |
getNumChildren() |
File |
getPhysicalFile() |
BlockMetrics |
getRawMetrics() |
Reader |
getSourceReader() |
Set<SourceInfo> |
getSourceRegions() |
List<? extends StatementInfo> |
getStatements()
Returns list of statements which are declared on a top-level of this source file.
|
Set<TestCaseInfo> |
getUniqueFailingTests() |
boolean |
isEmpty()
Returns true if the file does not contain any inner code entities.
|
boolean |
isLeaf() |
static FullFileInfo |
read(TaggedDataInput in) |
void |
resetVersions(long version) |
void |
resolve(Path path) |
void |
setComparator(Comparator cmp) |
void |
setDataIndex(int dataIndex) |
void |
setDataLength(int length) |
void |
setDataProvider(CoverageDataProvider data) |
void |
setFailStackEntries(Map<Integer,List<StackTraceInfo.TraceEntry>> entries) |
boolean |
supportsVersion(long version) |
boolean |
validatePhysicalFile() |
void |
visitElements(FileElementVisitor visitor) |
void |
write(TaggedDataOutput out) |
equals, getChecksum, getContainingPackage, getContextFilter, getEncoding, getEndColumn, getEndLine, getFilesize, getLineCount, getName, getNcLineCount, getPackagePath, getParent, getStartColumn, getStartLine, getTimestamp, hashCode, isTestFile, setContainingPackage, setMetrics, visitclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetChecksum, getContainingPackage, getEncoding, getFilesize, getLineCount, getName, getNcLineCount, getPackagePath, getTimestamp, isTestFilegetEndColumn, getEndLine, getStartColumn, getStartLinevisitgetContextFiltersetMetricspublic static final long NO_VERSION
protected Map<String,FullClassInfo> classes
protected List<FullStatementInfo> statements
protected List<FullMethodInfo> methods
protected int dataIndex
public FullFileInfo(FullPackageInfo containingPackage, File actualFile, String encoding, int dataIndex, int lineCount, int ncLineCount, long timestamp, long filesize, long checksum, long minVersion)
public CoverageDataProvider getDataProvider()
getDataProvider in interface CoverageDataReceptorpublic void setDataProvider(CoverageDataProvider data)
setDataProvider in interface CoverageDataReceptorpublic int getDataIndex()
getDataIndex in interface InstrumentationInfogetDataIndex in interface CoverageDataRangegetDataIndex in class BaseFileInfopublic int getDataLength()
getDataLength in interface InstrumentationInfogetDataLength in interface CoverageDataRangegetDataLength in class BaseFileInfo@NotNull public List<? extends ClassInfo> getClasses()
FileInfogetClasses in interface FileInfogetClasses in interface HasClassesgetClasses in class BaseFileInfo@NotNull public List<? extends ClassInfo> getAllClasses()
HasClassesgetAllClasses in interface HasClassesgetAllClasses in class BaseFileInfo@NotNull public List<? extends MethodInfo> getMethods()
FileInfogetMethods in interface FileInfogetMethods in interface HasMethodsgetMethods in class BaseFileInfo@NotNull public List<? extends MethodInfo> getAllMethods()
HasMethodsgetAllMethods in interface HasMethodsgetAllMethods in class BaseFileInfo@NotNull public List<? extends StatementInfo> getStatements()
FileInfogetStatements in interface FileInfogetStatements in interface HasStatementsgetStatements in class BaseFileInfopublic BlockMetrics getMetrics()
getMetrics in interface HasMetricsgetMetrics in class BaseFileInfopublic BlockMetrics getRawMetrics()
getRawMetrics in interface HasMetricsgetRawMetrics in class BaseFileInfopublic String getChildType()
getChildType in interface HasMetricsNodepublic boolean isEmpty()
FileInfoisEmpty in interface FileInfoisEmpty in interface HasMetricsNodeisEmpty in class BaseFileInfopublic int getNumChildren()
getNumChildren in interface HasMetricsNodepublic HasMetricsNode getChild(int i)
getChild in interface HasMetricsNodepublic int getIndexOfChild(HasMetricsNode child)
getIndexOfChild in interface HasMetricsNodepublic boolean isLeaf()
isLeaf in interface HasMetricsNodepublic void setComparator(Comparator cmp)
setComparator in interface HasMetricsNodepublic File getPhysicalFile()
public boolean validatePhysicalFile()
public Set<SourceInfo> getSourceRegions()
public LineInfo[] getLineInfo(boolean showLambdaFunctions, boolean showInnerFunctions)
public LineInfo[] getLineInfo(int ensureLineCountAtLeast, boolean showLambdaFunctions, boolean showInnerFunctions)
public void visitElements(FileElementVisitor visitor)
public void resolve(Path path)
public void setDataIndex(int dataIndex)
public void setDataLength(int length)
public void addVersion(long version)
public void addVersions(long minVersion,
long maxVersion)
public boolean supportsVersion(long version)
public long getMinVersion()
public long getMaxVersion()
public void resetVersions(long version)
public boolean changedFrom(long checksum,
long filesize)
public void addClass(FullClassInfo classInfo)
public void addMethod(FullMethodInfo methodInfo)
public void addStatement(FullStatementInfo statementInfo)
public FullFileInfo copy(FullPackageInfo pkg, HasMetricsFilter filter)
public Set<TestCaseInfo> getUniqueFailingTests()
public Map<Integer,List<StackTraceInfo.TraceEntry>> getFailStackEntries()
public void setFailStackEntries(Map<Integer,List<StackTraceInfo.TraceEntry>> entries)
public void addFailStackEntry(int lineNum,
StackTraceInfo.TraceEntry traceEntry)
public Reader getSourceReader() throws IOException
IOExceptionpublic Language getLanguage()
public void write(TaggedDataOutput out) throws IOException
write in interface TaggedPersistentIOExceptionpublic static FullFileInfo read(TaggedDataInput in) throws IOException
IOExceptionCopyright © 2024 OpenClover.org. All rights reserved.