use of org.eclipse.titanium.metrics.visitors.InternalFeatureEnvyDetector in project titan.EclipsePlug-ins by eclipse.
the class MMInEnvy method measure.
@Override
public Number measure(final MetricData data, final Module module) {
final Counter innerReferences = new Counter(0);
final InternalFeatureEnvyDetector detector = new InternalFeatureEnvyDetector(module, innerReferences);
module.accept(detector);
return innerReferences.val();
}
use of org.eclipse.titanium.metrics.visitors.InternalFeatureEnvyDetector 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.InternalFeatureEnvyDetector 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.InternalFeatureEnvyDetector 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