Class ModuleAccess

    • Constructor Detail

      • ModuleAccess

        public ModuleAccess​(com.hello2morrow.sonargraph.core.model.workspace.Module element)
        Internal use only
    • Method Detail

      • getMetricLevel

        public java.lang.Object getMetricLevel()
        Description copied from class: ElementAccess
        Internal use only
        Overrides:
        getMetricLevel in class ElementAccess<com.hello2morrow.sonargraph.core.model.workspace.Module>
      • getLanguage

        public final java.lang.String getLanguage()
        Get the language of this module.
        Specified by:
        getLanguage in interface IModuleAccess
        Returns:
        see above
      • getACDMetric

        public java.lang.Float getACDMetric()
        Specified by:
        getACDMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getBiggestComponentCycleGroupMetric

        public java.lang.Integer getBiggestComponentCycleGroupMetric()
        Specified by:
        getBiggestComponentCycleGroupMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getCCDMetric

        public java.lang.Integer getCCDMetric()
        Specified by:
        getCCDMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getPropagationCostMetric

        public java.lang.Float getPropagationCostMetric()
        Specified by:
        getPropagationCostMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getCodeCommentLinesMetric

        public java.lang.Integer getCodeCommentLinesMetric()
        Specified by:
        getCodeCommentLinesMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getCommentLinesMetric

        public java.lang.Integer getCommentLinesMetric()
        Specified by:
        getCommentLinesMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getLinesOfCodeMetric

        public java.lang.Integer getLinesOfCodeMetric()
        Specified by:
        getLinesOfCodeMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getNCCDMetric

        public java.lang.Float getNCCDMetric()
        Specified by:
        getNCCDMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getNumberOfComponentsMetric

        public java.lang.Integer getNumberOfComponentsMetric()
        Specified by:
        getNumberOfComponentsMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getNumberOfCyclicComponentsMetric

        public java.lang.Integer getNumberOfCyclicComponentsMetric()
        Specified by:
        getNumberOfCyclicComponentsMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getNumberOfStatementsMetric

        public java.lang.Integer getNumberOfStatementsMetric()
        Specified by:
        getNumberOfStatementsMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getSourceElementCountMetric

        public java.lang.Integer getSourceElementCountMetric()
        Specified by:
        getSourceElementCountMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getTotalLinesMetric

        public java.lang.Integer getTotalLinesMetric()
        Specified by:
        getTotalLinesMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getComponentCyclicityMetric

        public java.lang.Integer getComponentCyclicityMetric()
        Specified by:
        getComponentCyclicityMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getComponentRelativeCyclicityMetric

        public java.lang.Float getComponentRelativeCyclicityMetric()
        Specified by:
        getComponentRelativeCyclicityMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getComponentReferencesToCutMetric

        public java.lang.Integer getComponentReferencesToCutMetric()
        Specified by:
        getComponentReferencesToCutMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getNumberOfComponentViolationsMetric

        public java.lang.Integer getNumberOfComponentViolationsMetric()
        Specified by:
        getNumberOfComponentViolationsMetric in interface IModuleAccess
        Returns:
        the corresponding metric or 'null' if not available
      • getNumberOfViolatingComponentsMetric

        public java.lang.Integer getNumberOfViolatingComponentsMetric()
        Specified by:
        getNumberOfViolatingComponentsMetric in interface IModuleAccess
        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 interface IModuleAccess