Class ModuleContextDefProvider

java.lang.Object
com.e1c.langtool.v8.dt.bsl.translator.ModuleContextDefProvider

public class ModuleContextDefProvider extends Object
Service provides correct instance of bsl ContextDef for the module by given any EObject of this module.
  • Constructor Details

    • ModuleContextDefProvider

      public ModuleContextDefProvider()
  • Method Details

    • getContextDef

      public ContextDef getContextDef(org.eclipse.emf.ecore.EObject object)
      Gets the context def by the object from bsl module.
      Parameters:
      object - the object, cannot be null
      Returns:
      the context def, cannot return null
    • getContextDef

      public ContextDef getContextDef(org.eclipse.emf.ecore.resource.Resource resource)
      Gets the context def by the resource of bsl module.
      Parameters:
      resource - the resource, cannot be null
      Returns:
      the context def, cannot return null
    • clearCache

      public void clearCache(org.eclipse.emf.ecore.resource.Resource resource)
      Clear cached ContextDef in resource if exists.
      Parameters:
      resource - the resource, cannot be null
    • getContextDef

      protected ContextDef getContextDef(Module module)
      Gets the context def from IBmModel by bsl module if exists or get instance holds by the module.
      Parameters:
      module - the module
      Returns:
      the context def