public abstract class Generator extends Object
| Constructor and Description |
|---|
Generator(FileManager manager) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
generate(ProgramTypeRegistry registry)
Each compiler must implement this method.
|
void |
generateGlobal(ProgramRegistry registry,
Collection<File> inputFiles)
Generate anything that is dependent on the global scope, or not
directly connected to a single program.
|
protected FileManager |
getFileManager() |
public Generator(FileManager manager)
protected final FileManager getFileManager()
public abstract void generate(ProgramTypeRegistry registry) throws IOException, GeneratorException
registry - The typed and scoped registry for the program.IOException - If a file could not be written.GeneratorException - If some part of the file code could not be generated (invalid content).public void generateGlobal(ProgramRegistry registry, Collection<File> inputFiles) throws IOException, GeneratorException
registry - The global program registry.inputFiles - List of files that are generated for.IOException - If writing files failed.GeneratorException - If bad generation.Copyright © 2015–2019 morimekta.net. All rights reserved.