Package eu.bandm.tools.d2d2.base
Class Resolver4
java.lang.Object
eu.bandm.tools.d2d2.model.MATCH_ONLY_00
eu.bandm.tools.d2d2.model.Rewrite
eu.bandm.tools.d2d2.base.Resolver4
- All Implemented Interfaces:
Rewriter
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
class
protected class
protected class
protected class
protected class
protected class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected Resolver4.FlattenContext
(package private) Resolver4.Instance
protected Resolver4.Binding<Expression>
protected final Resolver4.DifferenceFound
protected final CheckedMap_RD<String,
Definition> protected Resolver4.ImportContext
protected Resolver4.ImportContext
(package private) boolean
protected Map<Definition,
Map<Resolver4.ImportContext, Resolver4.Instance>> protected Map<Definition,
List<Resolver4.LocalInstance>> protected final ModuleRegistry
protected final MessageTee<SimpleMessage<XMLDocumentIdentifier>>
Splits tomsgcount
and to the message channel of the caller.protected final MessageCounter
Own counter to abolish processing when an error has occured.(package private) boolean
protected Map<Reference,
Resolver4.Instance> protected final ResolvedModule
protected final Resolver4.ImportContext
protected final Module
static final String
DOCMEstatic final String
DOCME(package private) boolean
protected final int
protected Set<Resolver4.Instance>
Fields inherited from class eu.bandm.tools.d2d2.model.MATCH_ONLY_00
_visitor_debug_stream, partial
-
Constructor Summary
ConstructorDescriptionResolver4
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgoutput, ModuleRegistry moduleRegistry, Module rootModule, int verbosity) -
Method Summary
Modifier and TypeMethodDescriptionvoid
"rewriteFields(9" is NOT called on this level, but "match()" on the contained expression, with a further "FlattenContext" added to their stack.void
void
protected Resolver4.Instance
void
protected boolean
equivalent
(Definition def1, Definition def2) protected boolean
equivalent
(Expression exp1, Expression exp2) protected void
protected <T> @Opt Resolver4.Binding<T>
findBinding
(@Opt Resolver4.Binding<T> binding, String id) protected @Opt Resolver4.Instance
protected Map<Resolver4.ImportContext,
Resolver4.Instance> findInstances
(Definition raw) protected List<Resolver4.LocalInstance>
protected void
protected @Opt Resolver4.ImportContext
loadImportedModule
(Location<XMLDocumentIdentifier> loc, Resolver4.ImportContext ic, String pref) protected boolean
localEquivalent
(Expression expr, Resolver4.LocalInstance inst) protected void
protected void
Allows the module to contain references which are already resolved.protected void
rewriteFields
(Alt clone) protected void
rewriteFields
(CharBinary clone) protected void
rewriteFields
(CharSetConst clone) Simply clones.protected void
rewriteFields
(GrUnary clone) protected void
rewriteFields
(ParseParticle clone) Rewrite sub-expression and propagate "empty" upwards.protected void
rewriteFields
(Perm clone) void
rewriteFields
(Reference ref) protected void
rewriteFields
(Seq clone) protected void
rewriteFields
(StringConst clone) Simply clones.protected void
switchModuleRest
(Location<XMLDocumentIdentifier> loc, Reference currentReference, String... prefs) protected void
visitDefinition
(Location<XMLDocumentIdentifier> loc, Reference currentReference, String... prefs) protected void
visitPossiblyImportedDefinition
(Location<XMLDocumentIdentifier> loc, Reference currentReference, String id) protected void
visitPossiblyImportedDefinition
(Location<XMLDocumentIdentifier> loc, Reference currentReference, String... prefs) protected void
Methods inherited from class eu.bandm.tools.d2d2.model.Rewrite
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, breakLoop, follow_allRawModules, follow_definitions, follow_defInstances, follow_docu, follow_firsts, follow_globalSubsts, follow_imports, follow_itemDocu, follow_localdefs, follow_localSubsts, follow_modules, follow_namespaces, follow_obligates, follow_on, follow_resolved, follow_sources, follow_weakfirsts, follow_xattributes, getResult, isMulti, lookUp, putToCache, revert, rewrite, rewrite_typed, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, rewriteFields, substitute, substitute_empty, useCache
Methods inherited from class eu.bandm.tools.d2d2.model.MATCH_ONLY_00
_visitor_trace, action, action, action, action, compile, followAll_allRawModules, followAll_definitions, followAll_defInstances, followAll_docu, followAll_firsts, followAll_globalSubsts, followAll_imports, followAll_itemDocu, followAll_localdefs, followAll_localSubsts, followAll_modules, followAll_namespaces, followAll_obligates, followAll_on, followAll_resolved, followAll_sources, followAll_weakfirsts, followAll_xattributes, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatch
-
Field Details
-
partialMode
boolean partialMode -
rootModuleSymbolicName
DOCME- See Also:
-
rootModuleExpandedSuffix
DOCME- See Also:
-
msg
Splits tomsgcount
and to the message channel of the caller. -
msgcount
Own counter to abolish processing when an error has occured. -
moduleRegistry
-
verbosity
protected final int verbosity -
rootModule
-
rootImportContext
-
resolvedModule
-
tagsNotCharParser
boolean tagsNotCharParser -
insertMode
boolean insertMode -
currentLocalSubsts
-
importContextForRews
-
importContextForDefs
-
currentDefinitionName
-
currentFlattenContext
-
instances
-
localInstances
-
reference2instance
-
waitForClassification
-
currentHypothesis
Resolver4.Instance currentHypothesis -
emptyLocals
-
differenceFound
-
-
Constructor Details
-
Resolver4
public Resolver4(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgoutput, ModuleRegistry moduleRegistry, Module rootModule, int verbosity)
-
-
Method Details
-
resolveAllPublics_partial
Allows the module to contain references which are already resolved. This happens when a resolved module is embedded into the generic xslt module. This mode ignores resolved references, while the other moderesolveAllPublics()
throws an IllegalStateException. -
resolveAllPublics
-
error
-
warning
-
hint
-
findBinding
@Opt protected <T> @Opt Resolver4.Binding<T> findBinding(@Opt @Opt Resolver4.Binding<T> binding, String id) -
dumpInstances
public void dumpInstances() -
findInstances
-
findInstance
-
findLocalInstances
-
createNewInstance
-
action
-
action
"rewriteFields(9" is NOT called on this level, but "match()" on the contained expression, with a further "FlattenContext" added to their stack. Thus the result of rewriting is the expansion of thad expression, and the Insertion operator itself is eliminated. (NEW insertions containing only one single reference will be synthesized whenever a cycle is detected.) -
rewriteFields
- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
Rewrite sub-expression and propagate "empty" upwards.- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
Simply clones.- Overrides:
rewriteFields
in classRewrite
-
rewriteFields
Simply clones.- Overrides:
rewriteFields
in classRewrite
-
action
-
rewriteFields
- Overrides:
rewriteFields
in classRewrite
-
visitPossiblyImportedDefinition
protected void visitPossiblyImportedDefinition(Location<XMLDocumentIdentifier> loc, Reference currentReference, String id) -
visitPossiblyImportedDefinition
protected void visitPossiblyImportedDefinition(Location<XMLDocumentIdentifier> loc, Reference currentReference, String... prefs) -
switchModuleRest
protected void switchModuleRest(Location<XMLDocumentIdentifier> loc, Reference currentReference, String... prefs) -
loadImportedModule
@Opt protected @Opt Resolver4.ImportContext loadImportedModule(Location<XMLDocumentIdentifier> loc, Resolver4.ImportContext ic, String pref) -
visitDefinition
protected void visitDefinition(Location<XMLDocumentIdentifier> loc, Reference currentReference, String... prefs) -
localEquivalent
-
processWaitingClassifications
protected void processWaitingClassifications() -
processWaitingClassification
-
equivalent
-
equivalent
-