public abstract class AbstractProcessor extends Object
| Constructor and Description |
|---|
AbstractProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureFolderExists(Path path) |
protected String |
moduleName(ASTCompilationUnit unit) |
protected Path |
outputFile(Path targetFolder,
String moduleName,
String extension) |
abstract void |
process(List<ASTCompilationUnit> units,
Path targetFolder) |
abstract String |
render(ASTCompilationUnit compilationUnit) |
protected MethodHandle |
template(String name,
String format) |
public abstract String render(ASTCompilationUnit compilationUnit) throws Throwable
Throwablepublic abstract void process(List<ASTCompilationUnit> units, Path targetFolder) throws Throwable
Throwableprotected MethodHandle template(String name, String format) throws IOException
IOExceptionprotected void ensureFolderExists(Path path) throws IOException
IOExceptionprotected String moduleName(ASTCompilationUnit unit)
Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.