Search in sources :

Example 1 with ReturnPointVisitor

use of org.eclipse.titanium.metrics.visitors.ReturnPointVisitor in project titan.EclipsePlug-ins by eclipse.

the class FMReturnPoints method measure.

@Override
public Number measure(final MetricData data, final Def_Function function) {
    final Counter count = new Counter(0);
    function.accept(new ReturnPointVisitor(count));
    return count.val();
}
Also used : Counter(org.eclipse.titanium.metrics.visitors.Counter) ReturnPointVisitor(org.eclipse.titanium.metrics.visitors.ReturnPointVisitor)

Aggregations

Counter (org.eclipse.titanium.metrics.visitors.Counter)1 ReturnPointVisitor (org.eclipse.titanium.metrics.visitors.ReturnPointVisitor)1