public abstract class AbstractK8sGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractK8sGenerator.WritableNames |
| Modifier and Type | Field and Description |
|---|---|
protected ProcessingEnvironment |
processingEnv |
| Constructor and Description |
|---|
AbstractK8sGenerator(ProcessingEnvironment processingEnv) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendLine(Writer w,
String... lines) |
protected FileObject |
createFileObject(MainInfo main,
String fileName) |
protected abstract String |
fileName() |
protected AbstractK8sGenerator.WritableNames |
getElementNames(ElementInfo ei) |
protected List<ElementInfo> |
getRules(MainInfo main) |
protected java.util.stream.Stream<ElementInfo> |
getRulesStream(MainInfo main) |
String |
pluralize(String singular) |
protected abstract void |
write(Model m) |
protected final ProcessingEnvironment processingEnv
public AbstractK8sGenerator(ProcessingEnvironment processingEnv)
protected abstract String fileName()
protected abstract void write(Model m)
protected AbstractK8sGenerator.WritableNames getElementNames(ElementInfo ei)
protected java.util.stream.Stream<ElementInfo> getRulesStream(MainInfo main)
protected List<ElementInfo> getRules(MainInfo main)
protected FileObject createFileObject(MainInfo main, String fileName) throws IOException
IOExceptionprotected void appendLine(Writer w, String... lines) throws IOException
IOExceptionCopyright © 2021. All Rights Reserved.