use of org.eclipse.titanium.metrics.visitors.Counter in project titan.EclipsePlug-ins by eclipse.
the class AMInEnvy method measure.
@Override
public Number measure(final MetricData data, final Def_Altstep altstep) {
final Counter count = new Counter(0);
final Module myModule = altstep.getMyScope().getModuleScope();
altstep.accept(new InternalFeatureEnvyDetector(myModule, count));
return count.val();
}
use of org.eclipse.titanium.metrics.visitors.Counter in project titan.EclipsePlug-ins by eclipse.
the class AMNesting method measure.
@Override
public Number measure(final MetricData data, final Def_Altstep altstep) {
final Counter count = new Counter(0);
altstep.accept(new DepthVisitor(count));
return count.val();
}
use of org.eclipse.titanium.metrics.visitors.Counter in project titan.EclipsePlug-ins by eclipse.
the class FMInEnvy method measure.
@Override
public Number measure(final MetricData data, final Def_Function function) {
final Counter count = new Counter(0);
final Module myModule = function.getMyScope().getModuleScope();
function.accept(new InternalFeatureEnvyDetector(myModule, count));
return count.val();
}
use of org.eclipse.titanium.metrics.visitors.Counter in project titan.EclipsePlug-ins by eclipse.
the class TMCyclomaticComplexity method measure.
@Override
public Number measure(final MetricData data, final Def_Testcase testcase) {
final Counter count = new Counter(0);
testcase.accept(new CCVisitor(count));
return count.val();
}
use of org.eclipse.titanium.metrics.visitors.Counter in project titan.EclipsePlug-ins by eclipse.
the class TMInEnvy method measure.
@Override
public Number measure(final MetricData data, final Def_Testcase testcase) {
final Counter count = new Counter(0);
final Module myModule = testcase.getMyScope().getModuleScope();
testcase.accept(new InternalFeatureEnvyDetector(myModule, count));
return count.val();
}
Aggregations