Package eu.bandm.tools.d2d2.base
Class Resolver3.ImportContext
java.lang.Object
eu.bandm.tools.d2d2.base.Resolver3.ImportContext
- Enclosing class:
- Resolver3
Stack frames which represent dynamic import situations.
So one particulat instance corresponds to one particulat import prefix chain
like "$" or "A.B.C".
They form a tree, linked towards root by the field
predec
.
Most further fields are mere convenience fields, redundantly copied from the
source code level expression importItem
:
whether there is any rewriting at all; a reference to the raw module model instance;
its name; the import key, etc.-
Field Summary
Modifier and TypeFieldDescription(package private) final @Opt ImportItem
Maybe ==null only for top level (pseudo) import context.(package private) final String
The source level key identifier in the import statement.(package private) final String
The (fully expanded) name used to load the module source text.(package private) final @Opt Resolver3.ImportContext
Maybe ==null only for top level (pseudo) import context.(package private) final Module
The parsed un-rewritten Module.(package private) final Map<String,
@Opt Resolver3.ImportContext> All imports relative to this instance, indexed by their key string.(package private) final boolean
Indicates that no rewrite operations come with the underlyingImportItem
. -
Constructor Summary
ConstructorDescriptionImportContext
(@Opt Resolver3.ImportContext predec, ImportItem importItem, String moduleAddress, Module rawModule, String key) -
Method Summary
Modifier and TypeMethodDescriptionThe sequence of all import keys which lead to this dynamic ImportContext.compoundKey
(Definition def) The sequence of all import keys which lead to this dynamic ImportContext plus the name of the Definition.The sequence of all import keys which lead to this dynamic ImportContext.
-
Field Details
-
predec
Maybe ==null only for top level (pseudo) import context. -
importItem
Maybe ==null only for top level (pseudo) import context. -
moduleAddress
The (fully expanded) name used to load the module source text. -
rawModule
The parsed un-rewritten Module. -
key
The source level key identifier in the import statement. For identification not this field is used, but the result ofcompoundKey()
. -
subs
All imports relative to this instance, indexed by their key string. A value ==null indicates an earlier failed load attempt. -
unrewritten
final boolean unrewrittenIndicates that no rewrite operations come with the underlyingImportItem
.
-
-
Constructor Details
-
ImportContext
ImportContext(@Opt @Opt Resolver3.ImportContext predec, ImportItem importItem, String moduleAddress, Module rawModule, String key)
-
-
Method Details
-
compoundKeyX
The sequence of all import keys which lead to this dynamic ImportContext. The root is represented by a special nameResolver3.rootModuleSymbolicName
, for documentation generation and debugging. -
compoundKey
The sequence of all import keys which lead to this dynamic ImportContext. The root situation is just the empty string. This yields the complete import prefix, as it would appear in the ".ddf" source text of the root module. -
compoundKey
The sequence of all import keys which lead to this dynamic ImportContext plus the name of the Definition. The root situation is just the empty string. This yields the complete textual reference to that definition, as it would appear in the ".ddf" source text of the root module.
-