public abstract class Generator extends Object
| Constructor and Description |
|---|
Generator(FileManager manager) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
generate(net.morimekta.providence.reflect.ProgramRegistry registry)
Each compiler must implement this method.
|
void |
generateGlobal(net.morimekta.providence.reflect.GlobalRegistry registry,
Collection<Path> 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(net.morimekta.providence.reflect.ProgramRegistry 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(net.morimekta.providence.reflect.GlobalRegistry registry,
Collection<Path> 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–2020 morimekta.net. All rights reserved.