Package jetbrains.mps.generator
Class GenerationTaskRecorder<T extends GeneratorTask>
- java.lang.Object
 - 
- jetbrains.mps.generator.GenerationTaskRecorder<T>
 
 
- 
- All Implemented Interfaces:
 GeneratorTaskListener<T>
public class GenerationTaskRecorder<T extends GeneratorTask> extends Object implements GeneratorTaskListener<T>
Records all completed generator tasks and their respective status.- Since:
 - 3.4
 
 
- 
- 
Constructor Summary
Constructors Constructor Description GenerationTaskRecorder(GeneratorTaskListener<? super T> delegate) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone(T task, GenerationStatus status)List<GenerationStatus>getAllRecorded()GenerationStatusgetRecorded(T task)Looks up last recorded generation outcome for the given taskvoidstart(T task) 
 - 
 
- 
- 
Constructor Detail
- 
GenerationTaskRecorder
public GenerationTaskRecorder(@Nullable GeneratorTaskListener<? super T> delegate)
 
 - 
 
- 
Method Detail
- 
start
public void start(@NotNull T task)
- Specified by:
 startin interfaceGeneratorTaskListener<T extends GeneratorTask>
 
- 
done
public void done(@NotNull T task, @NotNull GenerationStatus status)
- Specified by:
 donein interfaceGeneratorTaskListener<T extends GeneratorTask>
 
- 
getAllRecorded
public List<GenerationStatus> getAllRecorded()
 
- 
getRecorded
@Nullable public GenerationStatus getRecorded(T task)
Looks up last recorded generation outcome for the given task- Parameters:
 task- what to look up- Returns:
 - most recent generation status for the task, or 
nullif none found. 
 
 - 
 
 -