On this page

new ModuleGraphConnection(originModule, dependency, module, explanation?, weak?, condition?): ModuleGraphConnection
Attributes
originModule:<Module> | <null>
the referencing module
dependency:<Dependency> | <null>
the referencing dependency
module:<Module>
the referenced module
explanation:<string>
some extra detail
the reference is weak
condition:<object> | <null>
condition for the connection
Attributes
condition:<object> | <null>
conditional:<boolean>
dependency:<Dependency> | <null>
explanation:<string>
explanations:
{Set }
module:<Module>
originModule:<Module> | <null>
resolvedModule:<Module>
resolvedOriginModule:<Module> | <null>
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): void
Attributes
condition:<object>
condition for the connection
Returns:
{void}

addExplanation(explanation): void
Attributes
explanation:<string>
the explanation to add
Returns:
{void}

clone(): ModuleGraphConnection

getActiveState(runtime): void
  • runtime {RuntimeSpec} the runtime
  • Returns: {ConnectionState} true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active

isActive(runtime): void
  • runtime {RuntimeSpec} the runtime
  • Returns: <boolean> true, if the connection is active

isTargetActive(runtime): void
  • runtime {RuntimeSpec} the runtime
  • Returns: <boolean> true, if the connection is active

setActive(value): void
Attributes
value:<boolean>
active or not
Returns:
{void}