Class ModuleContextDefProvider
java.lang.Object
com.e1c.langtool.v8.dt.bsl.translator.ModuleContextDefProvider
Service provides correct instance of bsl
ContextDef for the module by given any EObject of this module.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearCache(org.eclipse.emf.ecore.resource.Resource resource) Clear cachedContextDefin resource if exists.protected ContextDefgetContextDef(Module module) Gets the context def fromIBmModelby bsl module if exists or get instance holds by the module.getContextDef(org.eclipse.emf.ecore.EObject object) Gets the context def by the object from bsl module.getContextDef(org.eclipse.emf.ecore.resource.Resource resource) Gets the context def by the resource of bsl module.
-
Constructor Details
-
ModuleContextDefProvider
public ModuleContextDefProvider()
-
-
Method Details
-
getContextDef
Gets the context def by the object from bsl module.- Parameters:
object- the object, cannot benull- Returns:
- the context def, cannot return
null
-
getContextDef
Gets the context def by the resource of bsl module.- Parameters:
resource- the resource, cannot benull- Returns:
- the context def, cannot return
null
-
clearCache
public void clearCache(org.eclipse.emf.ecore.resource.Resource resource) Clear cachedContextDefin resource if exists.- Parameters:
resource- the resource, cannot benull
-
getContextDef
Gets the context def fromIBmModelby bsl module if exists or get instance holds by the module.- Parameters:
module- the module- Returns:
- the context def
-