Class BaseProcessingStep

java.lang.Object
dagger.android.processor.BaseProcessingStep
All Implemented Interfaces:
androidx.room.compiler.processing.XProcessingStep

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract Set<androidx.room.compiler.codegen.XClassName>
    Returns the set of annotations processed by this processing step.
    final com.google.common.collect.ImmutableSet<String>
     
    protected abstract void
    process(androidx.room.compiler.processing.XElement element, com.google.common.collect.ImmutableSet<androidx.room.compiler.codegen.XClassName> annotations)
    Processes one element.
    com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XElement>
    process(androidx.room.compiler.processing.XProcessingEnv env, Map<String,? extends 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 Details

    • BaseProcessingStep

      public BaseProcessingStep()
  • Method Details

    • annotations

      public final com.google.common.collect.ImmutableSet<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, Map<String,? extends 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<androidx.room.compiler.codegen.XClassName> 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 Set<androidx.room.compiler.codegen.XClassName> annotationClassNames()
      Returns the set of annotations processed by this processing step.