Class CompositeStatisticsProvider

java.lang.Object
com.e1c.langtool.internal.stat.CompositeStatisticsProvider
All Implemented Interfaces:
StatisticsProvider

public class CompositeStatisticsProvider extends Object implements StatisticsProvider
  • Constructor Details

  • Method Details

    • getStatistic

      public Statistics getStatistic(org.eclipse.core.runtime.IPath path)
      Description copied from interface: StatisticsProvider
      Gets 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:
      getStatistic in interface StatisticsProvider
      Parameters:
      path - the path to the file must be TranslationSource, the file must exist
      Returns:
      the statistics
    • getGroupStatistic

      public @NonNull Statistics getGroupStatistic(@NonNull org.eclipse.core.runtime.IPath path)
      Description copied from interface: StatisticsProvider
      Gets 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:
      getGroupStatistic in interface StatisticsProvider
      Parameters:
      path - the path
      Returns:
      the group statistics
    • getTotalValueStatistic

      public Statistics getTotalValueStatistic()
      Description copied from interface: StatisticsProvider
      Gets the project statistics. If there are no total statistics in the store, then the computing of total statistics should be started.
      Specified by:
      getTotalValueStatistic in interface StatisticsProvider
      Returns:
      the statistics
    • getAvailableMetrics

      public Collection<Metric> getAvailableMetrics()
      Description copied from interface: StatisticsProvider
      Gets the available metrics.
      Specified by:
      getAvailableMetrics in interface StatisticsProvider
      Returns:
      the available metrics
    • statisticsIterator

      public @NonNull Iterator<Pair<org.eclipse.core.runtime.IPath,Statistics>> statisticsIterator()
      Description copied from interface: StatisticsProvider
      Returns full project statistics.
      Specified by:
      statisticsIterator in interface StatisticsProvider
      Returns:
      the complete statistics