Package com.github.javaparser.generator
Class Generator
- java.lang.Object
-
- com.github.javaparser.generator.Generator
-
- Direct Known Subclasses:
NodeGenerator
,VisitorGenerator
public abstract class Generator extends Object
A general pattern that the generators in this module will follow.
-
-
Field Summary
Fields Modifier and Type Field Description protected SourceRoot
sourceRoot
-
Constructor Summary
Constructors Modifier Constructor Description protected
Generator(SourceRoot sourceRoot)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <T extends Node & NodeWithAnnotations<T>>
voidannotateGenerated(T node)
protected void
annotateOverridden(MethodDeclaration method)
protected <T extends Node & NodeWithAnnotations<T>>
voidannotateSuppressWarnings(T node)
abstract void
generate()
-
-
-
Field Detail
-
sourceRoot
protected final SourceRoot sourceRoot
-
-
Constructor Detail
-
Generator
protected Generator(SourceRoot sourceRoot)
-
-
Method Detail
-
annotateGenerated
protected <T extends Node & NodeWithAnnotations<T>> void annotateGenerated(T node)
-
annotateSuppressWarnings
protected <T extends Node & NodeWithAnnotations<T>> void annotateSuppressWarnings(T node)
-
annotateOverridden
protected void annotateOverridden(MethodDeclaration method)
-
-