cyvis.core.metrics.sources
Class ClassFileMetricSource
java.lang.Object
cyvis.core.metrics.sources.MetricSource
cyvis.core.metrics.sources.FileMetricSource
cyvis.core.metrics.sources.ClassFileMetricSource
public class ClassFileMetricSource
- extends FileMetricSource
A .class file from which metrics can be extracted.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
extensions
public static final Set<String> extensions
- File extensions supported by this class.
ClassFileMetricSource
public ClassFileMetricSource(File file)
collect
public void collect(ProjectMetric project,
MetricSource.ProgressNotifier notifier)
throws IOException
- Description copied from class:
MetricSource
- Collects all available metrics from the source.
- Specified by:
collect
in class MetricSource
- Parameters:
project
- the ProjectMetric to which the collected metrics will be
ProjectMetric.add(cyvis.core.metrics.ClassMetric)
ed.notifier
- a ProgressNotifier whose callback methods are called to
indicate the progress of metric collection
- Throws:
IOException