Interface IBslModuleLocator
-
public interface IBslModuleLocator
BSL module locator locates BSL modules byBslModuleReference
for debug purposes. 1C:Enterprise Runtime debug server operates withBslModuleReference
as module reference andIBslModuleLocator
allows to convert these references to actual BSL modules and vice versa.Clients may use
IBslModuleLocator
to get:BslModuleReference
by the BSL module workspace resource.- BSL module content or context def by the
BslModuleReference
.
- See Also:
BslModuleReference
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Module
getModule(BslModuleReference moduleReference, boolean forceDerivedStateComputation)
Returns actual BSL module for the given BSL module reference.Module
getModule(org.eclipse.core.resources.IResource resource, boolean forceDerivedStateComputation)
Returns BSL module, found in the given resource.ContextDef
getModuleContext(Module module)
Returns actual BSL module context def for the given BSL module.ContextDef
getModuleContext(BslModuleReference moduleReference)
Returns actual BSL module context def for the given BSL module reference.org.eclipse.emf.common.util.URI
getModuleUri(BslModuleReference moduleReference)
Returns URI of BSL module for the given BSL module reference.Module
getProxyModuleWithOwner(org.eclipse.core.resources.IResource resource)
Returns actual BSL proxy module with its owner byresource
BslModuleReference
getReference(org.eclipse.core.resources.IResource resource)
Construct and return BSL modulereference
by the given resource.
-
-
-
Method Detail
-
getReference
BslModuleReference getReference(org.eclipse.core.resources.IResource resource)
Construct and return BSL modulereference
by the given resource. Resource must contain BSL module.- Parameters:
resource
- the workspace resource to build BSL module reference for, cannot benull
- Returns:
- the BSL module reference, never
null
- Throws:
IllegalArgumentException
- if given resource has no underlying BSL module
-
getModuleUri
org.eclipse.emf.common.util.URI getModuleUri(BslModuleReference moduleReference)
Returns URI of BSL module for the given BSL module reference. Can returnnull
, if module for the given BSL module reference not found.- Parameters:
moduleReference
- the BSL module reference, cannot benull
- Returns:
- the URI of BSL module for the given BSL module reference, or
null
if module for this reference not found
-
getModule
Module getModule(org.eclipse.core.resources.IResource resource, boolean forceDerivedStateComputation)
Returns BSL module, found in the given resource. Resource must contain BSL module.- Parameters:
resource
- the resource to get BSL module for, cannot benull
forceDerivedStateComputation
- whether need to force method to compute module derived state- Returns:
- the BSL module, never
null
-
getModule
Module getModule(BslModuleReference moduleReference, boolean forceDerivedStateComputation)
Returns actual BSL module for the given BSL module reference. Can returnnull
if module for the given BSL module reference not found.- Parameters:
moduleReference
- the BSL module reference, cannot benull
forceDerivedStateComputation
- whether need to force method to compute module derived state- Returns:
- the BSL module for given BSL module reference or
null
, if module for this reference not found
-
getProxyModuleWithOwner
Module getProxyModuleWithOwner(org.eclipse.core.resources.IResource resource)
Returns actual BSL proxy module with its owner byresource
- Parameters:
resource
- the workspace resource to create BSL proxy module for, cannot benull
- Returns:
- actual BSL proxy module with its owner by
resource
, nevernull
. Returned object always will be proxy object withURI
created byresource
and featureBslPackage.Literals.MODULE__OWNER
will be set
-
getModuleContext
ContextDef getModuleContext(BslModuleReference moduleReference)
Returns actual BSL module context def for the given BSL module reference. Can returnnull
if module for the given BSL module reference not found.NOTE: Derived state for found module will be computed during method execution.
- Parameters:
moduleReference
- the BSL module reference, cannot benull
- Returns:
- the BSL module content def for the given BSL module reference or
null
, if module for this reference not found
-
getModuleContext
ContextDef getModuleContext(Module module)
Returns actual BSL module context def for the given BSL module. Can returnnull
if module for the given BSL module not found.NOTE: Derived state for found module will be computed during method execution.
- Parameters:
module
- the BSL module, cannot benull
- Returns:
- the BSL module content def for the given BSL module reference or
null
, if not found
-
-