public final class Resolver extends Object
ModuleRegistry#load_toplevel_module_from_stream(java.io.InputStream,String)
already has called Navigate.LocalReferenceNormalizer()#match(Module)
!!)
ModuleRegistry
.Modifier and Type | Class and Description |
---|---|
protected class |
Resolver.AllExpressionNormalizer
Flatten all insertions which are subject to a *LOCAL* substitution.
|
class |
Resolver.FirstCalculator
Sets up constants in each
Expression , which cache
structural properties of the syntax for later parsing. |
protected class |
Resolver.InsertionAndSubstititionResolver
Flatten all insertions which are subject to a *LOCAL* substitution.
|
protected class |
Resolver.ParseParticleGenerator
Links top-level fragment declarations and all
parse particles with the same name.
|
protected class |
Resolver.ReferenceResolver
Here all declaration objects, all items and all imported modules are already
rewritten.
|
Modifier and Type | Field and Description |
---|---|
protected ModuleRegistry |
modules |
protected Stack<Module> |
modulesOpen |
protected MessageTee<SimpleMessage<XMLDocumentIdentifier>> |
msg |
protected MessageCounter<SimpleMessage<XMLDocumentIdentifier>> |
msgcount |
Constructor and Description |
---|
Resolver(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgoutput,
ModuleRegistry modules) |
Modifier and Type | Method and Description |
---|---|
protected void |
error(Location<XMLDocumentIdentifier> loc,
String txt) |
protected void |
error(Location<XMLDocumentIdentifier> loc,
String txt,
Object... obj) |
protected void |
failure(String txt) |
protected boolean |
findLoop(Location<XMLDocumentIdentifier> loc,
Module mod) |
protected void |
hint(Location<XMLDocumentIdentifier> loc,
String txt) |
static void |
liftFirstsToSeq(Expression exp,
Seq ns)
All directors from "from" are lifted into the directory maps
of "to", to point to the "from"-expression.
|
protected void |
log(String txt) |
Module |
resolve(Module unresolved)
Gets an "unresolved" module and resolves all imports.
|
protected void |
warning(Location<XMLDocumentIdentifier> loc,
String txt) |
protected MessageTee<SimpleMessage<XMLDocumentIdentifier>> msg
protected MessageCounter<SimpleMessage<XMLDocumentIdentifier>> msgcount
protected ModuleRegistry modules
public Resolver(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msgoutput, ModuleRegistry modules)
protected void error(Location<XMLDocumentIdentifier> loc, String txt)
protected void error(Location<XMLDocumentIdentifier> loc, String txt, Object... obj)
protected void warning(Location<XMLDocumentIdentifier> loc, String txt)
protected void hint(Location<XMLDocumentIdentifier> loc, String txt)
protected void log(String txt)
protected void failure(String txt)
public Module resolve(Module unresolved)
protected boolean findLoop(Location<XMLDocumentIdentifier> loc, Module mod)
public static void liftFirstsToSeq(Expression exp, Seq ns)
see also the complete user documentation .