Package com.hello2morrow.sonargraph.api
Interface IPluginCoreAccess
- All Superinterfaces:
IBaseCoreAccess
,IElementAccess
,INamedElementAccess
- All Known Subinterfaces:
IPluginLanguageBasedAccess
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addIssue
(IElementAccess element, IPluginIssueId id, String description, int line) Add an issue to an element.Get ACD (John Lakos) metric for system scope.Get number of elements in the biggest component cycle group of the system.Get the biggest ACD value (John Lakos) of all modules in the system.Get CCD (John Lakos) metric for system scope.Get number of code comment lines on system scope.Get number of comment lines including header comments.Get system wide component cyclicity metric.Get number of component dependencies to remove to untangle all component cycle groups.Get number of references between components to remove to untangle all component cycle groups.Get system wide relative cyclicity between components.Get system wide structural debt index on component level.getExternalRoot
(String language, String identifier) getHiddenDataDirectory
(String pluginId) Get hidden data directory for a plugin.Get lines of codes (excluding empty lines and comment lines) on system scope.Get NCCD metric for system scope (John Lakos).Get total number of non-ignored duplicated code blocks on system scope.Get the number of component cycle groups on system scope.Get the number of internal components in the system.Get number of architecture violations between components.Get the number of internal components involved in cyclic dependencies that are not ignored.Get total number of duplicated lines in non-ignored duplicated code blocks on system scope.Get total number of ignored duplicated code blocks on system scope.Get the number of internal components involved in ignored cyclic dependencies.Get number of ignored violating parser dependencies.Get number of violating parser dependencies.Get the total number of statements on system scope.Get number of component not assigned to any active architectural artifact.Get number of components containing architecture violations.Get the value of Propagation Cost for the system scope (John Lakos).Get the total source element count of all internal elements of the system.Get the total number of lines in the system, including empty and comment lines.Methods inherited from interface com.hello2morrow.sonargraph.api.IBaseCoreAccess
findAllMatchingElements, findAllMatchingElementsRecursively, findAllMatchingFields, findAllMatchingMethods, findAllMatchingRoutines, findAllMatchingTypes, findElementByFqn, findFirstMatchingElement, findFirstMatchingElementRecursively, findFirstMatchingField, findFirstMatchingMethod, findFirstMatchingRoutine, findFirstMatchingType, getBaseDirectory, getBaseDirectoryPath, getComponents, getComponents, getExternalRoot, getModules, getName, getWorkspaceRoot, visitLogicalModuleNamespaces, visitLogicalSystemNamespaces, visitParserModel
Methods inherited from interface com.hello2morrow.sonargraph.api.IElementAccess
getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
Methods inherited from interface com.hello2morrow.sonargraph.api.INamedElementAccess
accept, getChildren, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getIssueCount, getIssueCount, getIssueCount, getIssues, getIssues, getIssues, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively
-
Method Details
-
addIssue
Add an issue to an element.- Parameters:
element
- The element associated with the issueid
- Issue specific id, should be equal for all issues of the same kinddescription
- Issue description (can be null)line
- Line number or 0 or negative when unknown- Returns:
- true, if issue is not ignored
-
getExternalRoot
- Parameters:
language
- (as of now "Java", "C#" or "C,C++")identifier
- a plugin id- Returns:
- the external root for the given identifier or null if it does not exist.
-
getACDMetric
Float getACDMetric()Get ACD (John Lakos) metric for system scope.- Returns:
- see above
-
getBiggestComponentCycleGroupMetric
Integer getBiggestComponentCycleGroupMetric()Get number of elements in the biggest component cycle group of the system.- Returns:
- see above
-
getCCDMetric
Integer getCCDMetric()Get CCD (John Lakos) metric for system scope.- Returns:
- see above
-
getCodeCommentLinesMetric
Integer getCodeCommentLinesMetric()Get number of code comment lines on system scope.- Returns:
- see above
-
getCommentLinesMetric
Integer getCommentLinesMetric()Get number of comment lines including header comments.- Returns:
- see above
-
getLinesOfCodeMetric
Integer getLinesOfCodeMetric()Get lines of codes (excluding empty lines and comment lines) on system scope.- Returns:
- see above
-
getNCCDMetric
Float getNCCDMetric()Get NCCD metric for system scope (John Lakos).- Returns:
- see above
-
getNumberOfComponentCycleGroupsMetric
Integer getNumberOfComponentCycleGroupsMetric()Get the number of component cycle groups on system scope.- Returns:
- see above
-
getNumberOfComponentsMetric
Integer getNumberOfComponentsMetric()Get the number of internal components in the system.- Returns:
- see above
-
getNumberOfCyclicComponentsMetric
Integer getNumberOfCyclicComponentsMetric()Get the number of internal components involved in cyclic dependencies that are not ignored.- Returns:
- see above
-
getNumberOfIgnoredCyclicComponentsMetric
Integer getNumberOfIgnoredCyclicComponentsMetric()Get the number of internal components involved in ignored cyclic dependencies.- Returns:
- see above
-
getNumberOfStatementsMetric
Integer getNumberOfStatementsMetric()Get the total number of statements on system scope.- Returns:
- see above
-
getPropagationCostMetric
Float getPropagationCostMetric()Get the value of Propagation Cost for the system scope (John Lakos).- Returns:
- see above
-
getSourceElementCountMetric
Integer getSourceElementCountMetric()Get the total source element count of all internal elements of the system.- Returns:
- see above
-
getTotalLinesMetric
Integer getTotalLinesMetric()Get the total number of lines in the system, including empty and comment lines.- Returns:
- see above
-
getNumberOfCodeDuplicatesMetric
Integer getNumberOfCodeDuplicatesMetric()Get total number of non-ignored duplicated code blocks on system scope.- Returns:
- see above
-
getNumberOfDuplicatedLinesMetric
Integer getNumberOfDuplicatedLinesMetric()Get total number of duplicated lines in non-ignored duplicated code blocks on system scope.- Returns:
- see above
-
getNumberOfIgnoredCodeDuplicatesMetric
Integer getNumberOfIgnoredCodeDuplicatesMetric()Get total number of ignored duplicated code blocks on system scope.- Returns:
- see above
-
getBiggestModuleACDMetric
Float getBiggestModuleACDMetric()Get the biggest ACD value (John Lakos) of all modules in the system.- Returns:
- see above
-
getComponentCyclicityMetric
Integer getComponentCyclicityMetric()Get system wide component cyclicity metric.- Returns:
- see above
-
getComponentRelativeCyclicityMetric
Float getComponentRelativeCyclicityMetric()Get system wide relative cyclicity between components.- Returns:
- see above
-
getComponentStructuralDebtIndexMetric
Integer getComponentStructuralDebtIndexMetric()Get system wide structural debt index on component level.- Returns:
- see above
-
getComponentParserDependenciesToRemoveMetric
Integer getComponentParserDependenciesToRemoveMetric()Get number of references between components to remove to untangle all component cycle groups.- Returns:
- see above
-
getComponentDependenciesToRemoveMetric
Integer getComponentDependenciesToRemoveMetric()Get number of component dependencies to remove to untangle all component cycle groups.- Returns:
- see above
-
getNumberOfUnassignedComponentsMetric
Integer getNumberOfUnassignedComponentsMetric()Get number of component not assigned to any active architectural artifact. (Architecture feature needed)- Returns:
- see above
-
getNumberOfComponentViolationsMetric
Integer getNumberOfComponentViolationsMetric()Get number of architecture violations between components. (Architecture feature needed)- Returns:
- see above
-
getNumberOfViolatingComponentsMetric
Integer getNumberOfViolatingComponentsMetric()Get number of components containing architecture violations. (Architecture feature needed)- Returns:
- see above
-
getNumberOfParserDependencyViolationsMetric
Integer getNumberOfParserDependencyViolationsMetric()Get number of violating parser dependencies. (Architecture feature needed)- Returns:
- see above
-
getNumberOfIgnoredParserDependencyViolationsMetric
Integer getNumberOfIgnoredParserDependencyViolationsMetric()Get number of ignored violating parser dependencies. (Architecture feature needed)- Returns:
- see above
-
getHiddenDataDirectory
Get hidden data directory for a plugin.- Parameters:
pluginId
- plugin id, must not be null or empty.- Returns:
- hidden data directory for plugin id, or null if it could't be created
-