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 java.lang.Object implements BasicAnnotationProcessor.Step
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Class<? extends java.lang.annotation.Annotation>>
annotationsByName
private BasicAnnotationProcessor.ProcessingStep
processingStep
-
Constructor Summary
Constructors Constructor Description ProcessingStepAsStep(BasicAnnotationProcessor.ProcessingStep processingStep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
annotations()
The set of fully-qualified annotation type names processed by this step.java.util.Set<? extends javax.lang.model.element.Element>
process(com.google.common.collect.ImmutableSetMultimap<java.lang.String,javax.lang.model.element.Element> elementsByAnnotation)
The implementation of processing logic for the step.private com.google.common.collect.ImmutableSetMultimap<java.lang.Class<? extends java.lang.annotation.Annotation>,javax.lang.model.element.Element>
toClassKeyedMultimap(com.google.common.collect.SetMultimap<java.lang.String,javax.lang.model.element.Element> elements)
-
-
-
Field Detail
-
processingStep
private final BasicAnnotationProcessor.ProcessingStep processingStep
-
annotationsByName
private final com.google.common.collect.ImmutableMap<java.lang.String,java.lang.Class<? extends java.lang.annotation.Annotation>> annotationsByName
-
-
Constructor Detail
-
ProcessingStepAsStep
ProcessingStepAsStep(BasicAnnotationProcessor.ProcessingStep processingStep)
-
-
Method Detail
-
annotations
public java.util.Set<java.lang.String> 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 java.util.Set<? extends javax.lang.model.element.Element> process(com.google.common.collect.ImmutableSetMultimap<java.lang.String,javax.lang.model.element.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<java.lang.Class<? extends java.lang.annotation.Annotation>,javax.lang.model.element.Element> toClassKeyedMultimap(com.google.common.collect.SetMultimap<java.lang.String,javax.lang.model.element.Element> elements)
-
-