Package com.e1c.langtool.internal.stat
Class EmptyStatisticsProvider
java.lang.Object
com.e1c.langtool.internal.stat.EmptyStatisticsProvider
- All Implemented Interfaces:
StatisticsProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<Metric>Gets the available metrics.@NonNull StatisticsgetGroupStatistic(@NonNull org.eclipse.core.runtime.IPath path) Gets the group statistics.@NonNull StatisticsgetStatistic(@NonNull org.eclipse.core.runtime.IPath path) Gets the statistics by path.@NonNull StatisticsGets the project statistics.@NonNull Iterator<Pair<org.eclipse.core.runtime.IPath,Statistics>> Returns full project statistics.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.stat.StatisticsProvider
getStatistic
-
Constructor Details
-
EmptyStatisticsProvider
public EmptyStatisticsProvider()
-
-
Method Details
-
getStatistic
Description copied from interface:StatisticsProviderGets the statistics by path. If the path points to a file, it returns statistics on the resource file. If there are no statistics for this path in the store, then the computing of statistics for the resource should be started.- Specified by:
getStatisticin interfaceStatisticsProvider- Parameters:
path- the path to the file must be TranslationSource, the file must exist- Returns:
- the statistics
-
getGroupStatistic
Description copied from interface:StatisticsProviderGets the group statistics. If the path points to a group, it returns statistics for the group. If there are no statistics for this path in the store, then the computing of statistics for the group should be started.- Specified by:
getGroupStatisticin interfaceStatisticsProvider- Parameters:
path- the path- Returns:
- the group statistics
-
statisticsIterator
Description copied from interface:StatisticsProviderReturns full project statistics.- Specified by:
statisticsIteratorin interfaceStatisticsProvider- Returns:
- the complete statistics
-
getAvailableMetrics
Description copied from interface:StatisticsProviderGets the available metrics.- Specified by:
getAvailableMetricsin interfaceStatisticsProvider- Returns:
- the available metrics
-
getTotalValueStatistic
Description copied from interface:StatisticsProviderGets the project statistics. If there are no total statistics in the store, then the computing of total statistics should be started.- Specified by:
getTotalValueStatisticin interfaceStatisticsProvider- Returns:
- the statistics
-