Class LanguageProcessor

java.lang.Object
com.e1c.langtool.v8.dt.languageprocessor.LanguageProcessor
Direct Known Subclasses:
LanguageCleaner, LanguageConverter

public abstract class LanguageProcessor extends Object
Provides functionality for languages manipulation.
  • Constructor Details

    • LanguageProcessor

      public LanguageProcessor()
  • Method Details

    • createBmProcessorTask

      protected abstract AbstractBmTask<Void> createBmProcessorTask(org.eclipse.core.resources.IProject project, org.eclipse.emf.ecore.EPackage ePackage, Set<Long> bmFeatures, LanguageProcessorParameters parameters)
      Creates the bm processor task.
      Parameters:
      project - the project, cannot be null
      ePackage - the e package, cannot be null
      bmFeatures - the bm features, cannot be null
      parameters - the parameters, cannot be null
      Returns:
      the abstract bm task, can be null
    • createNonBmProcessorTask

      protected abstract AbstractBmTask<Void> createNonBmProcessorTask(org.eclipse.emf.ecore.EPackage ePackage, Set<org.eclipse.emf.common.util.URI> bmFeatures, LanguageProcessorParameters parameters)
      Creates the non bm processor task.
      Parameters:
      ePackage - the e package, cannot be null
      bmFeatures - the bm features, cannot be null
      parameters - the parameters, cannot be null
      Returns:
      the abstract bm task, can be null
    • fillFeatures

      protected void fillFeatures(org.eclipse.core.resources.IProject project, Map<org.eclipse.emf.ecore.EPackage,Set<Long>> bmFeatures, Map<org.eclipse.emf.ecore.EPackage,Set<org.eclipse.emf.common.util.URI>> nonBmFeatures, LanguageProcessorParameters parameters, org.eclipse.core.runtime.IProgressMonitor monitor)
      Fills features.
      Parameters:
      project - the project, cannot be null
      bmFeatures - the bm features, cannot be null
      nonBmFeatures - the non bm features, cannot be null
      parameters - the parameters, cannot be null
      monitor - the monitor, cannot be null
    • createDerivedLanguage

      protected V8TranslateLanguage createDerivedLanguage(Language language)
      Creates the derived language.
      Parameters:
      language - the language, cannot be null
      Returns:
      the v8 translate language, cannot be null
    • processBmObjects

      protected void processBmObjects(org.eclipse.core.resources.IProject project, Map<org.eclipse.emf.ecore.EPackage,Set<Long>> collectedWorks, LanguageProcessorParameters parameters, org.eclipse.core.runtime.SubMonitor monitor)
      Processes BM objects.
      Parameters:
      project - the project, cannot be null
      collectedWorks - the collected works, cannot be null
      parameters - the parameters, cannot be null
      monitor - the monitor, cannot be null
    • processNonBmObjects

      protected void processNonBmObjects(org.eclipse.core.resources.IProject project, Map<org.eclipse.emf.ecore.EPackage,Set<org.eclipse.emf.common.util.URI>> collectedWorks, LanguageProcessorParameters parameters, org.eclipse.core.runtime.SubMonitor monitor)
      Processes non bm objects.
      Parameters:
      project - the project, cannot be null
      collectedWorks - the collected works, cannot be null
      languages - the languages, cannot be null
      parameters - the parameters, cannot be null
      monitor - the monitor, cannot be null
    • checkMonitor

      protected void checkMonitor(org.eclipse.core.runtime.SubMonitor monitor)
      Checks monitor.
      Parameters:
      monitor - the monitor, cannot be null
    • collectFeatureValues

      protected void collectFeatureValues(Object sourceObject, FeatureValue featureValue, Map<org.eclipse.emf.ecore.EPackage,Set<Long>> bmFeatures, Map<org.eclipse.emf.ecore.EPackage,Set<org.eclipse.emf.common.util.URI>> nonBmFeatures, LanguageProcessorParameters parameters)
      Collects feature values.
      Parameters:
      sourceObject - the source object, cannot be null
      featureValue - the feature value, cannot be null
      bmFeatures - the bm features, cannot be null
      nonBmFeatures - the non bm features, cannot be null
      parameters - the parameters, cannot be null
    • deleteLanguages

      protected void deleteLanguages(org.eclipse.core.resources.IProject project, LanguageProcessorParameters parameters, org.eclipse.core.runtime.SubMonitor monitor)
      Deletes project languages.
      Parameters:
      project - the project, cannot be null
      parameters - the parameters, cannot be null
      monitor - the monitor, cannot be null