new ModuleGraphConnection(originModule, dependency, module, explanation?, weak?, condition?): ModuleGraphConnectionAttributes
Returns:
<ModuleGraphConnection>Attributes
conditional:
<boolean>dependency:
<Dependency>
|
<null>explanation:
<string>explanations:
{Set
}
module:
<Module>resolvedModule:
<Module>weak:
<boolean>addConnectionStates:
<object>CIRCULAR_CONNECTION:
{CIRCULAR_CONNECTION} While determining the active state, this flag is used to signal a circular connection.
TRANSITIVE_ONLY:
{TRANSITIVE_ONLY} Module itself is not connected, but transitive modules are connected transitively.
addCondition(condition): voidAttributes
condition:
<object>condition for the connection
Returns:
{void}
addExplanation(explanation): voidAttributes
explanation:
<string>the explanation to add
Returns:
{void}
clone(): ModuleGraphConnectionReturns:
<ModuleGraphConnection>getActiveState(runtime): voidruntime{RuntimeSpec} the runtime- Returns: {ConnectionState} true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active
isActive(runtime): voidruntime{RuntimeSpec} the runtime- Returns:
<boolean>true, if the connection is active
isTargetActive(runtime): voidruntime{RuntimeSpec} the runtime- Returns:
<boolean>true, if the connection is active
setActive(value): voidAttributes
value:
<boolean>active or not
Returns:
{void}