public class DmdlAnalyzer extends Object
Constructor and Description |
---|
DmdlAnalyzer(DmdlAnalyzerEnhancer enhancer,
Iterable<? extends TypeDriver> typeDrivers,
Iterable<? extends AttributeDriver> attributeDrivers)
Creates and returns a new instance.
|
DmdlAnalyzer(Iterable<? extends TypeDriver> typeDrivers,
Iterable<? extends AttributeDriver> attributeDrivers)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addModel(AstModelDefinition<?> definition)
Adds a model definition to this analyzer.
|
DmdlSemantics |
resolve()
Resolves the all added definitions and returns the root semantics model.
|
public DmdlAnalyzer(Iterable<? extends TypeDriver> typeDrivers, Iterable<? extends AttributeDriver> attributeDrivers)
typeDrivers
- type resolversattributeDrivers
- attributed analyzersIllegalArgumentException
- if some parameters were null
public DmdlAnalyzer(DmdlAnalyzerEnhancer enhancer, Iterable<? extends TypeDriver> typeDrivers, Iterable<? extends AttributeDriver> attributeDrivers)
enhancer
- enhances this analyzertypeDrivers
- type resolversattributeDrivers
- attributed analyzersIllegalArgumentException
- if some parameters were null
public void addModel(AstModelDefinition<?> definition)
definition
- the model definitionIllegalArgumentException
- if some parameters were null
public DmdlSemantics resolve() throws DmdlSemanticException
DmdlSemanticException
- If registered models has some errorsCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.