com.hadii.stiff.metrics.CycloMetric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stiff-lib Show documentation
Show all versions of stiff-lib Show documentation
stiff-lib is a java library for generating stiff diagrams.
The newest version!
package com.hadii.stiff.metrics;
import com.hadii.clarpse.sourcemodel.Component;
/**
* Represents a Cyclomatic Complexity metric, which is a measure of the complexity of a given code unit.
*/
public class CycloMetric implements Metric {
private final Component component;
public CycloMetric(Component component) {
this.component = component;
}
public double value() {
return this.component.cyclo();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy