An AST transformation which adapts the AST generated from a script as a class extending groovy..
This transformation:
template classgroovy.text.markup.MarkupBuilderCodeTransformer on the "run" method| Modifier and Type | Field and Description |
|---|---|
| private final TemplateConfiguration | |
| private static final ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | call(final SourceUnit source, final GeneratorContext context, final ClassNode classNode)
Implements org.
|
| private void | |
| private void |
| config | back to summary |
|---|---|
| private final TemplateConfiguration config | |
| TEMPLATECONFIG_CLASSNODE | back to summary |
|---|---|
| private static final ClassNode TEMPLATECONFIG_CLASSNODE | |
| TemplateASTTransformer | back to summary |
|---|---|
| public TemplateASTTransformer(TemplateConfiguration config) | |
| call | back to summary |
|---|---|
| public void call(final SourceUnit source, final GeneratorContext context, final ClassNode classNode) throws CompilationFailedException Implements org.
| |
| createConstructor | back to summary |
|---|---|
| private void createConstructor(final ClassNode classNode) | |
| transformRunMethod | back to summary |
|---|---|
| private void transformRunMethod(final ClassNode classNode, final SourceUnit source) | |