Class FactoryAutoProcessingEntry

java.lang.Object
dev.derklaro.aerogel.auto.processing.AbstractAutoProcessingEntry
dev.derklaro.aerogel.auto.internal.processing.FactoryAutoProcessingEntry
All Implemented Interfaces:
AutoProcessingEntry

@API(status=INTERNAL, since="2.0") public final class FactoryAutoProcessingEntry extends AbstractAutoProcessingEntry
A processing entry which emits data of factory methods.
Since:
2.0
  • Constructor Details

    • FactoryAutoProcessingEntry

      public FactoryAutoProcessingEntry()
      Constructs a new factory auto processing entry instance.
  • Method Details

    • parseMethodArguments

      @NotNull private static @NotNull List<String> parseMethodArguments(@NotNull @NotNull ProcessingEnvironment env, @NotNull @NotNull ExecutableElement element)
      Parses the argument types which can be loaded in the runtime of the given executable element.
      Parameters:
      env - the current processing environment.
      element - the element to get the argument types of.
      Returns:
      an ordered list of type names of the arguments of the given executable element.
    • parseElements

      @NotNull public @NotNull Collection<AnnotationEntryWriter> parseElements(@NotNull @NotNull Collection<? extends Element> annotatedElements, @NotNull @NotNull ProcessingEnvironment processingEnvironment)
      Parses the given elements which are annotated with one of the supported annotations and constructs writers for each element to emit it them into autoconfigure files.
      Parameters:
      annotatedElements - the elements which are annotated with one of the supported annotations.
      processingEnvironment - the current processing environment.
      Returns:
      a collection of writers to emit each entry into an autoconfigure file.