Class SourceGenerators

java.lang.Object
io.micronaut.sourcegen.generator.SourceGenerators

public final class SourceGenerators extends Object
The source generators.
Since:
1.0
Author:
Denis Stepanov
  • Method Details

    • getAll

      @NonNull public static @NonNull List<SourceGenerator> 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 annotation
      exception - The exception
      postponeCallback - A call back if compilation needs to be delayed to the next round