Class ModuleAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module>
-
- com.hello2morrow.sonargraph.core.api.model.ModuleAccess
-
- All Implemented Interfaces:
IElementAccess
,IModuleAccess
,INamedElementAccess
- Direct Known Subclasses:
CppModuleAccess
,CSharpModuleAccess
,JavaModuleAccess
,PythonModuleAccess
public class ModuleAccess extends ElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module> implements IModuleAccess
Access class for parse model modules.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
ElementAccess.IAccessFactory
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.IModuleAccess
IModuleAccess.IVisitor
-
Nested classes/interfaces inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
INamedElementAccess.INamedElementAccessVisitor
-
-
Constructor Summary
Constructors Constructor Description ModuleAccess(com.hello2morrow.sonargraph.core.model.workspace.Module element)
Internal use only
-
Method Summary
-
Methods inherited from class com.hello2morrow.sonargraph.core.api.model.ElementAccess
equals, getChildren, getElement, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getName, getNameWithSignature, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively, getShortName, getShortNameWithSignature, hashCode, ignoreIssues, isExcluded, isExternal, setFactory, toString
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.IElementAccess
getName, getNameWithSignature, getShortName, getShortNameWithSignature, ignoreIssues, isExcluded, isExternal
-
Methods inherited from interface com.hello2morrow.sonargraph.api.model.INamedElementAccess
getChildren, getFullyQualifiedName, getIncomingDependenciesRecursively, getIncomingDependenciesRecursively, getIssueCount, getIssueCount, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getOutgoingDependenciesRecursively, getParent, getParent, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencedElementsRecursively, getReferencingElementsRecursively, getReferencingElementsRecursively
-
-
-
-
Method Detail
-
getSourceRootDirectories
public final java.util.List<IDirectoryAccess> getSourceRootDirectories()
- Specified by:
getSourceRootDirectories
in interfaceIModuleAccess
-
getMetricLevel
public java.lang.Object getMetricLevel()
Description copied from class:ElementAccess
Internal use only- Overrides:
getMetricLevel
in classElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module>
-
getLanguage
public final java.lang.String getLanguage()
Get the language of this module.- Specified by:
getLanguage
in interfaceIModuleAccess
- Returns:
- see above
-
getACDMetric
public java.lang.Float getACDMetric()
- Specified by:
getACDMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getBiggestComponentCycleGroupMetric
public java.lang.Integer getBiggestComponentCycleGroupMetric()
- Specified by:
getBiggestComponentCycleGroupMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getCCDMetric
public java.lang.Integer getCCDMetric()
- Specified by:
getCCDMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getPropagationCostMetric
public java.lang.Float getPropagationCostMetric()
- Specified by:
getPropagationCostMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getCodeCommentLinesMetric
public java.lang.Integer getCodeCommentLinesMetric()
- Specified by:
getCodeCommentLinesMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getCommentLinesMetric
public java.lang.Integer getCommentLinesMetric()
- Specified by:
getCommentLinesMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getLinesOfCodeMetric
public java.lang.Integer getLinesOfCodeMetric()
- Specified by:
getLinesOfCodeMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNCCDMetric
public java.lang.Float getNCCDMetric()
- Specified by:
getNCCDMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfComponentCycleGroupsMetric
public java.lang.Integer getNumberOfComponentCycleGroupsMetric()
- Specified by:
getNumberOfComponentCycleGroupsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfComponentsMetric
public java.lang.Integer getNumberOfComponentsMetric()
- Specified by:
getNumberOfComponentsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfCyclicComponentsMetric
public java.lang.Integer getNumberOfCyclicComponentsMetric()
- Specified by:
getNumberOfCyclicComponentsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfIgnoredCyclicComponentsMetric
public java.lang.Integer getNumberOfIgnoredCyclicComponentsMetric()
- Specified by:
getNumberOfIgnoredCyclicComponentsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfStatementsMetric
public java.lang.Integer getNumberOfStatementsMetric()
- Specified by:
getNumberOfStatementsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getSourceElementCountMetric
public java.lang.Integer getSourceElementCountMetric()
- Specified by:
getSourceElementCountMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getTotalLinesMetric
public java.lang.Integer getTotalLinesMetric()
- Specified by:
getTotalLinesMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getComponentCyclicityMetric
public java.lang.Integer getComponentCyclicityMetric()
- Specified by:
getComponentCyclicityMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getComponentRelativeCyclicityMetric
public java.lang.Float getComponentRelativeCyclicityMetric()
- Specified by:
getComponentRelativeCyclicityMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getComponentStructuralDebtIndexMetric
public java.lang.Integer getComponentStructuralDebtIndexMetric()
- Specified by:
getComponentStructuralDebtIndexMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getComponentReferencesToCutMetric
public java.lang.Integer getComponentReferencesToCutMetric()
- Specified by:
getComponentReferencesToCutMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getComponentComponentDependenciesToCutMetric
public java.lang.Integer getComponentComponentDependenciesToCutMetric()
- Specified by:
getComponentComponentDependenciesToCutMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfUnassignedComponentsMetric
public java.lang.Integer getNumberOfUnassignedComponentsMetric()
- Specified by:
getNumberOfUnassignedComponentsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfComponentViolationsMetric
public java.lang.Integer getNumberOfComponentViolationsMetric()
- Specified by:
getNumberOfComponentViolationsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfViolatingComponentsMetric
public java.lang.Integer getNumberOfViolatingComponentsMetric()
- Specified by:
getNumberOfViolatingComponentsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfAllViolatingComponentsMetric
@Deprecated public java.lang.Integer getNumberOfAllViolatingComponentsMetric()
Deprecated.This method should no longer be used. Use the 'Parser' virtual model to obtain the unaltered metric. If you use this method the metric value might change depending on the selected virtual model.- Specified by:
getNumberOfAllViolatingComponentsMetric
in interfaceIModuleAccess
-
getNumberOfParserDependencyViolationsMetric
public java.lang.Integer getNumberOfParserDependencyViolationsMetric()
- Specified by:
getNumberOfParserDependencyViolationsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfIgnoredParserDependencyViolationsMetric
public java.lang.Integer getNumberOfIgnoredParserDependencyViolationsMetric()
- Specified by:
getNumberOfIgnoredParserDependencyViolationsMetric
in interfaceIModuleAccess
- Returns:
- the corresponding metric or 'null' if not available
-
getMaintainabilityLevelMetric
public java.lang.Float getMaintainabilityLevelMetric()
- Specified by:
getMaintainabilityLevelMetric
in interfaceIModuleAccess
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
accept
in interfaceINamedElementAccess
- Overrides:
accept
in classElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module>
- Parameters:
visitor
- The visitor implementation
-
-