public abstract class Generator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SourceRoot |
sourceRoot |
Modifier | Constructor and Description |
---|---|
protected |
Generator(SourceRoot sourceRoot) |
Modifier and Type | Method and Description |
---|---|
private <T extends Node & NodeWithAnnotations<T>> |
annotate(T node,
java.lang.Class<?> annotation,
Expression content) |
protected <T extends Node & NodeWithAnnotations<T>> |
annotateGenerated(T node) |
protected void |
annotateOverridden(MethodDeclaration method) |
protected <T extends Node & NodeWithAnnotations<T>> |
annotateSuppressWarnings(T node) |
abstract void |
generate() |
protected final SourceRoot sourceRoot
protected Generator(SourceRoot sourceRoot)
public abstract void generate() throws java.lang.Exception
java.lang.Exception
protected <T extends Node & NodeWithAnnotations<T>> void annotateGenerated(T node)
protected <T extends Node & NodeWithAnnotations<T>> void annotateSuppressWarnings(T node)
private <T extends Node & NodeWithAnnotations<T>> void annotate(T node, java.lang.Class<?> annotation, Expression content)
protected void annotateOverridden(MethodDeclaration method)