|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileInfo
Represents a single source file. A file is a part of a package - getContainingPackage()
Implemented interfaces:
Method Summary | |
---|---|
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. it does not return inner classes). |
PackageInfo |
getContainingPackage()
Returns a package for which this package belongs to (or the default package) |
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) |
Methods inherited from interface com.atlassian.clover.api.registry.InstrumentationInfo |
---|
getDataIndex, getDataLength |
Methods inherited from interface com.atlassian.clover.api.registry.SourceInfo |
---|
getEndColumn, getEndLine, getStartColumn, getStartLine |
Methods inherited from interface com.atlassian.clover.api.registry.EntityContainer |
---|
visit |
Methods inherited from interface com.atlassian.clover.api.registry.HasClasses |
---|
getAllClasses |
Methods inherited from interface com.atlassian.clover.api.registry.HasMethods |
---|
getAllMethods |
Methods inherited from interface com.atlassian.clover.api.registry.HasContextFilter |
---|
getContextFilter |
Methods inherited from interface com.atlassian.clover.api.registry.HasMetrics |
---|
getMetrics, getRawMetrics, setMetrics |
Methods inherited from interface com.atlassian.clover.api.registry.HasParent |
---|
getParent |
Method Detail |
---|
@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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |