Class BaseProcessingStep

  • All Implemented Interfaces:
    androidx.room.compiler.processing.XProcessingStep

    public abstract class BaseProcessingStep
    extends java.lang.Object
    implements androidx.room.compiler.processing.XProcessingStep
    A XProcessingStep that processes one element at a time and defers any for which TypeNotPresentException is thrown.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.util.Set<com.squareup.javapoet.ClassName> annotationClassNames()
      Returns the set of annotations processed by this processing step.
      com.google.common.collect.ImmutableSet<java.lang.String> annotations()  
      protected abstract void process​(androidx.room.compiler.processing.XElement element, com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> annotations)
      Processes one element.
      com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XElement> process​(androidx.room.compiler.processing.XProcessingEnv env, java.util.Map<java.lang.String,​? extends java.util.Set<? extends androidx.room.compiler.processing.XElement>> elementsByAnnotation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface androidx.room.compiler.processing.XProcessingStep

        process, processOver
    • Constructor Detail

      • BaseProcessingStep

        public BaseProcessingStep()
    • Method Detail

      • annotations

        public final com.google.common.collect.ImmutableSet<java.lang.String> annotations()
        Specified by:
        annotations in interface androidx.room.compiler.processing.XProcessingStep
      • process

        public com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XElement> process​(androidx.room.compiler.processing.XProcessingEnv env,
                                                                                                          java.util.Map<java.lang.String,​? extends java.util.Set<? extends androidx.room.compiler.processing.XElement>> elementsByAnnotation)
        Specified by:
        process in interface androidx.room.compiler.processing.XProcessingStep
      • process

        protected abstract void process​(androidx.room.compiler.processing.XElement element,
                                        com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> annotations)
        Processes one element. If this method throws TypeNotPresentException, the element will be deferred until the next round of processing.
        Parameters:
        annotations - the subset of XProcessingStep.annotations() that annotate element
      • annotationClassNames

        protected abstract java.util.Set<com.squareup.javapoet.ClassName> annotationClassNames()
        Returns the set of annotations processed by this processing step.