Class BaseGeneratorTasks
- java.lang.Object
-
- java.util.concurrent.ForkJoinTask<Void>
-
- java.util.concurrent.RecursiveAction
-
- software.amazon.awssdk.codegen.emitters.GeneratorTask
-
- software.amazon.awssdk.codegen.emitters.tasks.BaseGeneratorTasks
-
- All Implemented Interfaces:
Serializable,Future<Void>
- Direct Known Subclasses:
AsyncClientGeneratorTasks,AuthSchemeGeneratorTasks,BaseExceptionClassGeneratorTasks,CommonClientGeneratorTasks,CommonInternalGeneratorTasks,EndpointProviderTasks,JmesPathRuntimeGeneratorTask,MarshallerGeneratorTasks,PackageInfoGeneratorTasks,PaginatorsGeneratorTasks,RulesEngineRuntimeGeneratorTask,RulesEngineRuntimeGeneratorTask2,SyncClientGeneratorTasks,WaitersGeneratorTasks,WaitersRuntimeGeneratorTask
public abstract class BaseGeneratorTasks extends GeneratorTask
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringbaseDirectoryprotected org.slf4j.Loggerlogprotected IntermediateModelmodelprotected StringtestDirectory
-
Constructor Summary
Constructors Constructor Description BaseGeneratorTasks(GeneratorTaskParams dependencies)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcompute()protected GeneratorTaskcreatePoetGeneratorTask(ClassSpec classSpec)protected GeneratorTaskcreatePoetGeneratorTestTask(ClassSpec classSpec)protected abstract List<GeneratorTask>createTasks()protected booleanhasTasks()Hook to allow subclasses to indicate they have no tasks so they can assume when createTasks is called there's something to emit.protected voidinfo(String message)-
Methods inherited from class java.util.concurrent.RecursiveAction
exec, getRawResult, setRawResult
-
Methods inherited from class java.util.concurrent.ForkJoinTask
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
-
-
-
-
Field Detail
-
baseDirectory
protected final String baseDirectory
-
testDirectory
protected final String testDirectory
-
model
protected final IntermediateModel model
-
log
protected final org.slf4j.Logger log
-
-
Constructor Detail
-
BaseGeneratorTasks
public BaseGeneratorTasks(GeneratorTaskParams dependencies)
-
-
Method Detail
-
info
protected void info(String message)
-
hasTasks
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.
-
createPoetGeneratorTask
protected final GeneratorTask createPoetGeneratorTask(ClassSpec classSpec)
-
createPoetGeneratorTestTask
protected final GeneratorTask createPoetGeneratorTestTask(ClassSpec classSpec)
-
createTasks
protected abstract List<GeneratorTask> createTasks() throws Exception
- Throws:
Exception
-
compute
protected void compute()
- Specified by:
computein classRecursiveAction
-
-