Package com.e1c.langtool.internal.stat
Class EmptyStatisticsManager
java.lang.Object
com.e1c.langtool.internal.stat.EmptyStatisticsManager
- All Implemented Interfaces:
StatisticsManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexportStatistics(Path path, String type) Exports statistics to an external file in the specified format.@NonNull org.eclipse.core.resources.IProjectGets the project to edit statistics.voidRemove all statistics in this manager for all sources and all languagesvoidremoveStatistic(@NonNull TranslateLanguage language) Remove statistics for given language.voidremoveStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull TranslateLanguage language) Remove statistics for given path ofTranslationSourceandTranslationLanguage.voidremoveStatistic(org.eclipse.core.runtime.IPath path) Remove statistics for given path ofTranslationSourcefor allTranslationLanguages.voidRecompute full statistics.voidupdateFullStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull Statistics statistics) Update full statistics.voidupdateLanguageStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull TranslateLanguage language, @NonNull Statistics statistics) Update statistics.voidupdateProjectLanguageStatistic(@NonNull TranslateLanguage language, @NonNull Statistics statistics) Update project language statistics.voidupdateProjectStatistic(@NonNull Statistics statistics) Update 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.StatisticsManager
removeStatistic, removeStatistic, updateFullStatistic, updateLanguageStatistic
-
Constructor Details
-
EmptyStatisticsManager
public EmptyStatisticsManager()
-
-
Method Details
-
getProject
public @NonNull org.eclipse.core.resources.IProject getProject()Description copied from interface:StatisticsManagerGets the project to edit statistics.- Specified by:
getProjectin interfaceStatisticsManager- Returns:
- the project, cannot return
null.
-
updateProjectStatistic
Description copied from interface:StatisticsManagerUpdate project statistics.- Specified by:
updateProjectStatisticin interfaceStatisticsManager- Parameters:
statistics- the statistics, cannot benull.
-
updateProjectLanguageStatistic
public void updateProjectLanguageStatistic(@NonNull TranslateLanguage language, @NonNull Statistics statistics) Description copied from interface:StatisticsManagerUpdate project language statistics.- Specified by:
updateProjectLanguageStatisticin interfaceStatisticsManager- Parameters:
language- the language, cannot benull.statistics- the statistics, cannot benull.
-
updateFullStatistic
public void updateFullStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull Statistics statistics) Description copied from interface:StatisticsManagerUpdate full statistics.- Specified by:
updateFullStatisticin interfaceStatisticsManager- Parameters:
path- the translation source path, cannot benull.statistics- the statistics that may contain all data for each languages, or absent data for all languages will be cleaned. Cannot benull.
-
updateLanguageStatistic
public void updateLanguageStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull TranslateLanguage language, @NonNull Statistics statistics) Description copied from interface:StatisticsManagerUpdate statistics.- Specified by:
updateLanguageStatisticin interfaceStatisticsManagerlanguage- the language, cannot benull.
-
removeStatistic
public void removeStatistic()Description copied from interface:StatisticsManagerRemove all statistics in this manager for all sources and all languages- Specified by:
removeStatisticin interfaceStatisticsManager
-
removeStatistic
Description copied from interface:StatisticsManagerRemove statistics for given language.- Specified by:
removeStatisticin interfaceStatisticsManager- Parameters:
language- the language, cannot benull.
-
removeStatistic
public void removeStatistic(org.eclipse.core.runtime.IPath path) Description copied from interface:StatisticsManagerRemove statistics for given path ofTranslationSourcefor allTranslationLanguages.- Specified by:
removeStatisticin interfaceStatisticsManager- Parameters:
path- the path, cannot benull.
-
removeStatistic
public void removeStatistic(@NonNull org.eclipse.core.runtime.IPath path, @NonNull TranslateLanguage language) Description copied from interface:StatisticsManagerRemove statistics for given path ofTranslationSourceandTranslationLanguage.- Specified by:
removeStatisticin interfaceStatisticsManager- Parameters:
path- the path, cannot benull.language- the language, cannot benull.
-
startRecomputeFullStatistic
public void startRecomputeFullStatistic()Description copied from interface:StatisticsManagerRecompute full statistics.- Specified by:
startRecomputeFullStatisticin interfaceStatisticsManager
-
exportStatistics
Description copied from interface:StatisticsManagerExports statistics to an external file in the specified format.- Specified by:
exportStatisticsin interfaceStatisticsManager- Parameters:
path- the path to the file where the statistics will be exported, cannot benull.type- the statistics type, cannot benull
-