Class LanguageProcessor
java.lang.Object
com.e1c.langtool.v8.dt.languageprocessor.LanguageProcessor
- Direct Known Subclasses:
LanguageCleaner,LanguageConverter
Provides functionality for languages manipulation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMonitor(org.eclipse.core.runtime.SubMonitor monitor) Checks monitor.protected voidcollectFeatureValues(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.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.protected V8TranslateLanguagecreateDerivedLanguage(Language language) Creates the derived language.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.protected voiddeleteLanguages(org.eclipse.core.resources.IProject project, LanguageProcessorParameters parameters, org.eclipse.core.runtime.SubMonitor monitor) Deletes project languages.protected voidfillFeatures(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.protected voidprocessBmObjects(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.protected voidprocessNonBmObjects(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.
-
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 benullePackage- the e package, cannot benullbmFeatures- the bm features, cannot benullparameters- the parameters, cannot benull- 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 benullbmFeatures- the bm features, cannot benullparameters- the parameters, cannot benull- 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 benullbmFeatures- the bm features, cannot benullnonBmFeatures- the non bm features, cannot benullparameters- the parameters, cannot benullmonitor- the monitor, cannot benull
-
createDerivedLanguage
Creates the derived language.- Parameters:
language- the language, cannot benull- 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 benullcollectedWorks- the collected works, cannot benullparameters- the parameters, cannot benullmonitor- the monitor, cannot benull
-
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 benullcollectedWorks- the collected works, cannot benulllanguages- the languages, cannot benullparameters- the parameters, cannot benullmonitor- the monitor, cannot benull
-
checkMonitor
protected void checkMonitor(org.eclipse.core.runtime.SubMonitor monitor) Checks monitor.- Parameters:
monitor- the monitor, cannot benull
-
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 benullfeatureValue- the feature value, cannot benullbmFeatures- the bm features, cannot benullnonBmFeatures- the non bm features, cannot benullparameters- the parameters, cannot benull
-
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 benullparameters- the parameters, cannot benullmonitor- the monitor, cannot benull
-