public interface AttributeDriver
AST.
To enhance DMDL compiler, clients can implement this
and put the class name in
META-INF/services/com.asakusafw.dmdl.spi.AttributeDriver.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AttributeDriver.Context
A processing context for
AttributeDriver. |
| Modifier and Type | Method and Description |
|---|---|
String |
getTargetName()
Returns the qualified name of the target attribute.
|
void |
process(AttributeDriver.Context context,
Declaration declaration,
AstAttribute attribute)
Processes and modifies the attributed declaration.
|
default void |
verify(AttributeDriver.Context context,
Declaration declaration,
AstAttribute attribute)
Verifies the attributed declaration.
|
String getTargetName()
void process(AttributeDriver.Context context, Declaration declaration, AstAttribute attribute)
context - the current contextattribute - the attribute with the target namedeclaration - the declaration with the attributegetTargetName()default void verify(AttributeDriver.Context context, Declaration declaration, AstAttribute attribute)
processed.context - the current contextattribute - the attribute with the target namedeclaration - the declaration with the attributegetTargetName()Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.