Class BasicAnnotationProcessor.ProcessingStepAsStep

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • annotationsByName

        private final com.google.common.collect.ImmutableMap<java.lang.String,​java.lang.Class<? extends java.lang.annotation.Annotation>> annotationsByName
    • 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 interface BasicAnnotationProcessor.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 in elementsByAnnotation will be a subset of the set returned by BasicAnnotationProcessor.Step.annotations().
        Specified by:
        process in interface BasicAnnotationProcessor.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)