public abstract class NodeGenerator extends Generator
sourceRoot
Modifier | Constructor and Description |
---|---|
protected |
NodeGenerator(SourceRoot sourceRoot) |
Modifier and Type | Method and 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, annotateSuppressWarnings
protected 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.