Package com.hello2morrow.sonargraph.api
Interface ISourceFileAccess
- All Superinterfaces:
IElementAccess,INamedElementAccess
- All Known Subinterfaces:
ICppSourceFileAccess,IJavaSourceFileAccess,IPythonSourceFileAccess,ITypeScriptSourceFileAccess
Access interface for source files
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor -
Method Summary
Modifier and TypeMethodDescriptiongetAuthors(IScmPeriod period) floatfloatintintintintintintintintintintfloatfloatfloatfloatfloatintintintde.schlichtherle.truezip.file.TFilegetFile()intintintintintgetPath()getSourceLines(boolean withLineBreaks) Return raw content of source file.intbooleanMethods inherited from interface com.hello2morrow.sonargraph.api.IElementAccess
getName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternalMethods inherited from interface com.hello2morrow.sonargraph.api.INamedElementAccess
accept, getChildren, getChildrenRecursively, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getIssueCount, getIssueCount, getIssueCount, getIssues, getIssues, getIssues, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively
-
Method Details
-
getSourceLines
List<ISourceLineAccess> getSourceLines()- Returns:
- the content of a source file, line by line.
TheISourceLineAccessallow the creation of context-aware issues, so that resolutions can be applied even if line is changed in the future.
-
getSourceLines
Return raw content of source file.- Parameters:
withLineBreaks- If true lines will be terminated by line breaks, otherwise line breaks are stripped.- Returns:
- List of lines in this source file.
-
getFile
de.schlichtherle.truezip.file.TFile getFile() -
getPath
String getPath() -
getCodeCommentLinesMetric
int getCodeCommentLinesMetric() -
getCommentLinesMetric
int getCommentLinesMetric() -
getTotalLinesMetric
int getTotalLinesMetric() -
getLinesOfCodeMetric
int getLinesOfCodeMetric()- Returns:
- the lines of code metric for this source files (number of non-empty and non-comment lines).
-
getMaxNestingMetric
int getMaxNestingMetric() -
getAverageComplexityMetric
float getAverageComplexityMetric() -
getAverageNestingMetric
float getAverageNestingMetric() -
getDaysSinceLastCommit
int getDaysSinceLastCommit() -
getChangeCount30
int getChangeCount30() -
getChangeCount90
int getChangeCount90() -
getChangeCount365
int getChangeCount365() -
getChangeCount2y
int getChangeCount2y() -
getChangeCount5y
int getChangeCount5y() -
getChurn30
int getChurn30() -
getChurn90
int getChurn90() -
getChurn365
int getChurn365() -
getChurn2y
int getChurn2y() -
getChurn5y
int getChurn5y() -
getChurnRate30
float getChurnRate30() -
getChurnRate90
float getChurnRate90() -
getChurnRate365
float getChurnRate365() -
getChurnRate2y
float getChurnRate2y() -
getChurnRate5y
float getChurnRate5y() -
getNumberOfAuthors
int getNumberOfAuthors() -
getNumberOfAuthors2y
int getNumberOfAuthors2y() -
getNumberOfAuthors5y
int getNumberOfAuthors5y() -
getAuthors
-
isModified
boolean isModified()
-