public abstract class Generator<C extends GeneratorContext<C>> extends Object
| Constructor and Description |
|---|
Generator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNoWaiterLeft(C context) |
abstract C |
createGeneratorContext() |
abstract SourceFileHandler |
createSourceFileHandler(Path file,
C context) |
void |
discoverSourceFiles(C context) |
void |
parseAndGenerate(C context) |
void |
parseAndGenerate(Path sourceDirectory,
Path targetDirectory) |
void |
prepareTargets(C context) |
void |
processNewFile(Path file,
C context) |
void |
processPendingNewFiles(C context) |
void |
renderPreparedTargetFiles(C context) |
public abstract C createGeneratorContext()
public abstract SourceFileHandler createSourceFileHandler(Path file, C context)
public void parseAndGenerate(Path sourceDirectory, Path targetDirectory) throws Exception
Exceptionprotected void checkNoWaiterLeft(C context)
public void discoverSourceFiles(C context) throws IOException
IOExceptionpublic void renderPreparedTargetFiles(C context)
Copyright © 2015. All rights reserved.