public abstract class BaseGeneratorTasks extends 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 void |
compute() |
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) |
exec, getRawResult, setRawResult
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, complete, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
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
protected void compute()
compute
in class RecursiveAction
Copyright © 2020. All rights reserved.