コード例 #1
0
ファイル: DIT.java プロジェクト: katsuhisamaruyama/codeforest
 /**
  * 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);
 }
コード例 #2
0
ファイル: LOC.java プロジェクト: katsuhisamaruyama/codeforest
 /**
  * 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);
 }