All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hadii.stiff.metrics.CycloMetric Maven / Gradle / Ivy

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