Package org.jetbrains.mps.openapi.module
Interface SDependency
-
public interface SDependency
Represents a dependency between modules. It points to the target module, can be of several kinds and may declare re-export.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SDependencyScope
getScope()
SModule
getTarget()
Resolves dependency target in scope of source's repository.SModuleReference
getTargetModule()
Target module of this dependency as we know it.boolean
isReexport()
-
-
-
Method Detail
-
getScope
@NotNull SDependencyScope getScope()
-
isReexport
boolean isReexport()
-
getTargetModule
@NotNull SModuleReference getTargetModule()
Target module of this dependency as we know it. Presence of a dependency doesn't mean its target is present, it's subject to resolution with appropriateSRepository
- Returns:
- identity of dependency target module
-
getTarget
@Nullable SModule getTarget()
Resolves dependency target in scope of source's repository. If a different scope/repository shall be used for resolution, usegetTargetModule()
- Returns:
null
if dependency could not be resolved
-
-