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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classA writer which emits annotation data of factory methods. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new factory auto processing entry instance. -
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<AnnotationEntryWriter>parseElements(@NotNull Collection<? extends Element> annotatedElements, @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.parseMethodArguments(@NotNull ProcessingEnvironment env, @NotNull ExecutableElement element) Parses the argument types which can be loaded in the runtime of the given executable element.Methods inherited from class dev.derklaro.aerogel.auto.processing.AbstractAutoProcessingEntry
name, supportedAnnotations
-
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.
-