public abstract class BaseGeneratorTasks extends Object implements Iterable<GeneratorTask>
Modifier and Type | Field and Description |
---|---|
protected String |
baseDirectory |
protected org.slf4j.Logger |
log |
protected IntermediateModel |
model |
protected String |
testDirectory |
Constructor and Description |
---|
BaseGeneratorTasks(GeneratorTaskParams dependencies) |
Modifier and Type | Method and Description |
---|---|
protected GeneratorTask |
createPoetGeneratorTask(ClassSpec classSpec) |
protected GeneratorTask |
createPoetGeneratorTestTask(ClassSpec classSpec) |
protected abstract List<GeneratorTask> |
createTasks() |
protected boolean |
hasTasks()
Hook to allow subclasses to indicate they have no tasks so they can assume when createTasks is called there's something to
emit.
|
protected void |
info(String message) |
Iterator<GeneratorTask> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected final String baseDirectory
protected final String testDirectory
protected final IntermediateModel model
protected final org.slf4j.Logger log
public BaseGeneratorTasks(GeneratorTaskParams dependencies)
protected void info(String message)
protected boolean hasTasks()
protected final GeneratorTask createPoetGeneratorTask(ClassSpec classSpec) throws IOException
IOException
protected final GeneratorTask createPoetGeneratorTestTask(ClassSpec classSpec) throws IOException
IOException
protected abstract List<GeneratorTask> createTasks() throws Exception
Exception
public Iterator<GeneratorTask> iterator()
iterator
in interface Iterable<GeneratorTask>
Copyright © 2019. All rights reserved.