CloneGenerator, FinalGenerator, GetMetaModelGenerator, GetNodeListsGenerator, MainConstructorGenerator, PropertyGenerator, RemoveMethodGenerator, ReplaceMethodGeneratorpublic abstract class NodeGenerator extends Generator
sourceRoot| Modifier | Constructor | Description |
|---|---|---|
protected |
NodeGenerator(SourceRoot sourceRoot) |
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addOrReplaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface,
CallableDeclaration<?> callable) |
Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it
with callable.
|
protected void |
after() |
|
void |
generate() |
|
protected abstract void |
generateNode(BaseNodeMetaModel nodeMetaModel,
CompilationUnit nodeCu,
ClassOrInterfaceDeclaration nodeCoid) |
|
protected void |
replaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface,
CallableDeclaration<?> callable) |
Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it
with callable.
|
annotateGenerated, annotateOverridden, annotateSuppressWarningsprotected NodeGenerator(SourceRoot sourceRoot)
public final void generate()
throws Exception
protected abstract void generateNode(BaseNodeMetaModel nodeMetaModel, CompilationUnit nodeCu, ClassOrInterfaceDeclaration nodeCoid)
protected void addOrReplaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable)
protected void replaceWhenSameSignature(ClassOrInterfaceDeclaration containingClassOrInterface, CallableDeclaration<?> callable)
Copyright © 2007–2019. All rights reserved.