/** * Returns the maximum metric value with respect to a given class. * * @param mclass the class to be examined * @return the value of this metric * @throws UnsupportedMetricsException if this metric is not supported, that is the value is * invalid */ public double getMaximumValue(ClassMetrics mclass) throws UnsupportedMetricsException { ProjectMetrics mproject = mclass.getPackageMetrics().getProjectMetrics(); return mproject.getMetricValueWithException(MetricSort.MAX_DEPTH_OF_INHERITANCE_TREE); }
/** * Returns the maximum metric value with respect to a given class. * * @param mclass the class to be examined * @return the value of this metric * @throws UnsupportedMetricsException if this metric is not supported, that is the value is * invalid */ public double getMaximumValue(ClassMetrics mclass) throws UnsupportedMetricsException { ProjectMetrics mproject = mclass.getPackageMetrics().getProjectMetrics(); return mproject.getMetricValueWithException(MetricSort.MAX_LINE_OF_CODE); }