public abstract class AbstractProcessor
extends java.lang.Object
| Constructor and Description |
|---|
AbstractProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureFolderExists(java.nio.file.Path path) |
protected java.lang.String |
moduleName(ASTCompilationUnit unit) |
protected java.nio.file.Path |
outputFile(java.nio.file.Path targetFolder,
java.lang.String moduleName,
java.lang.String extension) |
abstract void |
process(java.util.Map<java.lang.String,ASTCompilationUnit> units,
java.nio.file.Path targetFolder) |
abstract java.lang.String |
render(ASTCompilationUnit compilationUnit) |
protected FunctionReference |
template(java.lang.String name,
java.lang.String format) |
public abstract java.lang.String render(ASTCompilationUnit compilationUnit) throws java.lang.Throwable
java.lang.Throwablepublic abstract void process(java.util.Map<java.lang.String,ASTCompilationUnit> units, java.nio.file.Path targetFolder) throws java.lang.Throwable
java.lang.Throwableprotected FunctionReference template(java.lang.String name, java.lang.String format) throws java.io.IOException
java.io.IOExceptionprotected void ensureFolderExists(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionprotected java.nio.file.Path outputFile(java.nio.file.Path targetFolder,
java.lang.String moduleName,
java.lang.String extension)
protected java.lang.String moduleName(ASTCompilationUnit unit)