Package io.micronaut.sourcegen.generator
Class SourceGenerators
java.lang.Object
io.micronaut.sourcegen.generator.SourceGenerators
The source generators.
- Since:
- 1.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Optional<SourceGenerator>
findByLanguage
(io.micronaut.inject.visitor.VisitorContext.Language language) static @NonNull List<SourceGenerator>
getAll()
static void
handleFatalException
(@NonNull io.micronaut.inject.ast.Element originatingElement, @NonNull Class<? extends Annotation> annotation, @NonNull Exception exception, Consumer<RuntimeException> postponeCallback) Utility method for handling exceptions.
-
Method Details
-
getAll
-
findByLanguage
@Nullable public static @Nullable Optional<SourceGenerator> findByLanguage(io.micronaut.inject.visitor.VisitorContext.Language language) -
handleFatalException
public static void handleFatalException(@NonNull @NonNull io.micronaut.inject.ast.Element originatingElement, @NonNull @NonNull Class<? extends Annotation> annotation, @NonNull @NonNull Exception exception, Consumer<RuntimeException> postponeCallback) Utility method for handling exceptions.- Parameters:
originatingElement
- The originating element.annotation
- The annotationexception
- The exceptionpostponeCallback
- A call back if compilation needs to be delayed to the next round
-