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:
getSourceRootDirectoriesin interfaceIModuleAccess
-
getMetricLevel
public java.lang.Object getMetricLevel()
Description copied from class:ElementAccessInternal use only- Overrides:
getMetricLevelin classElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module>
-
getLanguage
public final java.lang.String getLanguage()
Get the language of this module.- Specified by:
getLanguagein interfaceIModuleAccess- Returns:
- see above
-
getACDMetric
public java.lang.Float getACDMetric()
- Specified by:
getACDMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getBiggestComponentCycleGroupMetric
public java.lang.Integer getBiggestComponentCycleGroupMetric()
- Specified by:
getBiggestComponentCycleGroupMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getCCDMetric
public java.lang.Integer getCCDMetric()
- Specified by:
getCCDMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getPropagationCostMetric
public java.lang.Float getPropagationCostMetric()
- Specified by:
getPropagationCostMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getCodeCommentLinesMetric
public java.lang.Integer getCodeCommentLinesMetric()
- Specified by:
getCodeCommentLinesMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getCommentLinesMetric
public java.lang.Integer getCommentLinesMetric()
- Specified by:
getCommentLinesMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getLinesOfCodeMetric
public java.lang.Integer getLinesOfCodeMetric()
- Specified by:
getLinesOfCodeMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNCCDMetric
public java.lang.Float getNCCDMetric()
- Specified by:
getNCCDMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfComponentCycleGroupsMetric
public java.lang.Integer getNumberOfComponentCycleGroupsMetric()
- Specified by:
getNumberOfComponentCycleGroupsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfComponentsMetric
public java.lang.Integer getNumberOfComponentsMetric()
- Specified by:
getNumberOfComponentsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfCyclicComponentsMetric
public java.lang.Integer getNumberOfCyclicComponentsMetric()
- Specified by:
getNumberOfCyclicComponentsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfIgnoredCyclicComponentsMetric
public java.lang.Integer getNumberOfIgnoredCyclicComponentsMetric()
- Specified by:
getNumberOfIgnoredCyclicComponentsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfStatementsMetric
public java.lang.Integer getNumberOfStatementsMetric()
- Specified by:
getNumberOfStatementsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getSourceElementCountMetric
public java.lang.Integer getSourceElementCountMetric()
- Specified by:
getSourceElementCountMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getTotalLinesMetric
public java.lang.Integer getTotalLinesMetric()
- Specified by:
getTotalLinesMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getComponentCyclicityMetric
public java.lang.Integer getComponentCyclicityMetric()
- Specified by:
getComponentCyclicityMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getComponentRelativeCyclicityMetric
public java.lang.Float getComponentRelativeCyclicityMetric()
- Specified by:
getComponentRelativeCyclicityMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getComponentStructuralDebtIndexMetric
public java.lang.Integer getComponentStructuralDebtIndexMetric()
- Specified by:
getComponentStructuralDebtIndexMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getComponentReferencesToCutMetric
public java.lang.Integer getComponentReferencesToCutMetric()
- Specified by:
getComponentReferencesToCutMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getComponentComponentDependenciesToCutMetric
public java.lang.Integer getComponentComponentDependenciesToCutMetric()
- Specified by:
getComponentComponentDependenciesToCutMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfUnassignedComponentsMetric
public java.lang.Integer getNumberOfUnassignedComponentsMetric()
- Specified by:
getNumberOfUnassignedComponentsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfComponentViolationsMetric
public java.lang.Integer getNumberOfComponentViolationsMetric()
- Specified by:
getNumberOfComponentViolationsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfViolatingComponentsMetric
public java.lang.Integer getNumberOfViolatingComponentsMetric()
- Specified by:
getNumberOfViolatingComponentsMetricin 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:
getNumberOfAllViolatingComponentsMetricin interfaceIModuleAccess
-
getNumberOfParserDependencyViolationsMetric
public java.lang.Integer getNumberOfParserDependencyViolationsMetric()
- Specified by:
getNumberOfParserDependencyViolationsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getNumberOfIgnoredParserDependencyViolationsMetric
public java.lang.Integer getNumberOfIgnoredParserDependencyViolationsMetric()
- Specified by:
getNumberOfIgnoredParserDependencyViolationsMetricin interfaceIModuleAccess- Returns:
- the corresponding metric or 'null' if not available
-
getMaintainabilityLevelMetric
public java.lang.Float getMaintainabilityLevelMetric()
- Specified by:
getMaintainabilityLevelMetricin interfaceIModuleAccess
-
accept
public void accept(INamedElementAccess.INamedElementAccessVisitor visitor)
Internal- Specified by:
acceptin interfaceINamedElementAccess- Overrides:
acceptin classElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module>- Parameters:
visitor- The visitor implementation
-
-