public interface FileInfo extends InstrumentationInfo, SourceInfo, EntityContainer, HasClasses, HasMethods, HasStatements, HasContextFilter, HasMetrics, HasParent
getContainingPackage()
Implemented interfaces:
Modifier and Type | Method and Description |
---|---|
long |
getChecksum() |
java.util.List<? extends ClassInfo> |
getClasses()
Returns list of classes which are declared on a top-level of this source file (i.e.
|
PackageInfo |
getContainingPackage()
Returns a package for which this package belongs to (or the default package)
Note: it supports only one package namespace per source file
|
java.lang.String |
getEncoding()
Returns file encoding, e.g.
|
long |
getFilesize()
Returns file size in bytes
|
int |
getLineCount()
Returns number of source lines in a file
|
java.util.List<? extends MethodInfo> |
getMethods()
Returns list of methods which are declared on a top-level of this source file.
|
java.lang.String |
getName()
Returns source file name
|
int |
getNcLineCount()
Returns number of non-comment and non-empty source lines in a file.
|
java.lang.String |
getPackagePath()
Returns a file name with a package path, e.g.
|
java.util.List<? extends StatementInfo> |
getStatements()
Returns list of statements which are declared on a top-level of this source file.
|
long |
getTimestamp()
Returns file modification time stamp as per File.lastModified()
|
boolean |
isEmpty()
Returns true if the file does not contain any inner code entities.
|
boolean |
isTestFile()
Returns true if this is a test file (according to the test pattern defined during instrumentation)
|
getDataIndex, getDataLength
getEndColumn, getEndLine, getStartColumn, getStartLine
visit
getAllClasses
getAllMethods
getContextFilter
getMetrics, getRawMetrics, setMetrics
@NotNull java.util.List<? extends ClassInfo> getClasses()
getClasses
in interface HasClasses
@NotNull java.util.List<? extends MethodInfo> getMethods()
getMethods
in interface HasMethods
@NotNull java.util.List<? extends StatementInfo> getStatements()
getStatements
in interface HasStatements
java.lang.String getName()
getName
in interface HasMetrics
java.lang.String getEncoding()
long getTimestamp()
long getFilesize()
long getChecksum()
java.lang.String getPackagePath()
PackageInfo getContainingPackage()
int getLineCount()
int getNcLineCount()
boolean isEmpty()
boolean isTestFile()