Package com.google.auto.common
Class BasicAnnotationProcessor.ProcessingStepAsStep
java.lang.Object
com.google.auto.common.BasicAnnotationProcessor.ProcessingStepAsStep
- All Implemented Interfaces:
BasicAnnotationProcessor.Step
- Enclosing class:
- BasicAnnotationProcessor
private static class BasicAnnotationProcessor.ProcessingStepAsStep
extends Object
implements BasicAnnotationProcessor.Step
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap<String,
Class<? extends Annotation>> private final BasicAnnotationProcessor.ProcessingStep
-
Constructor Summary
ConstructorsConstructorDescriptionProcessingStepAsStep
(BasicAnnotationProcessor.ProcessingStep processingStep) -
Method Summary
Modifier and TypeMethodDescriptionThe set of fully-qualified annotation type names processed by this step.The implementation of processing logic for the step.private com.google.common.collect.ImmutableSetMultimap<Class<? extends Annotation>,
Element> toClassKeyedMultimap
(com.google.common.collect.SetMultimap<String, Element> elements)
-
Field Details
-
processingStep
-
annotationsByName
private final com.google.common.collect.ImmutableMap<String,Class<? extends Annotation>> annotationsByName
-
-
Constructor Details
-
ProcessingStepAsStep
ProcessingStepAsStep(BasicAnnotationProcessor.ProcessingStep processingStep)
-
-
Method Details
-
annotations
Description copied from interface:BasicAnnotationProcessor.Step
The set of fully-qualified annotation type names processed by this step.Warning: If the returned names are not names of annotations, they'll be ignored.
- Specified by:
annotations
in interfaceBasicAnnotationProcessor.Step
-
process
public Set<? extends Element> process(com.google.common.collect.ImmutableSetMultimap<String, Element> elementsByAnnotation) Description copied from interface:BasicAnnotationProcessor.Step
The implementation of processing logic for the step. It is guaranteed that the keys inelementsByAnnotation
will be a subset of the set returned byBasicAnnotationProcessor.Step.annotations()
.- Specified by:
process
in interfaceBasicAnnotationProcessor.Step
- Returns:
- the elements (a subset of the values of
elementsByAnnotation
) that this step is unable to process, possibly until a later processing round. These elements will be passed back to this step at the next round of processing.
-
toClassKeyedMultimap
private com.google.common.collect.ImmutableSetMultimap<Class<? extends Annotation>,Element> toClassKeyedMultimap(com.google.common.collect.SetMultimap<String, Element> elements)
-