Package dagger.android.processor
Class BaseProcessingStep
- java.lang.Object
-
- dagger.android.processor.BaseProcessingStep
-
- All Implemented Interfaces:
androidx.room.compiler.processing.XProcessingStep
public abstract class BaseProcessingStep extends java.lang.Object implements androidx.room.compiler.processing.XProcessingStepAXProcessingStepthat processes one element at a time and defers any for whichTypeNotPresentExceptionis thrown.
-
-
Constructor Summary
Constructors Constructor Description BaseProcessingStep()
-
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 voidprocess(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)
-
-
-
Method Detail
-
annotations
public final com.google.common.collect.ImmutableSet<java.lang.String> annotations()
- Specified by:
annotationsin interfaceandroidx.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:
processin interfaceandroidx.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 throwsTypeNotPresentException, the element will be deferred until the next round of processing.- Parameters:
annotations- the subset ofXProcessingStep.annotations()that annotateelement
-
annotationClassNames
protected abstract java.util.Set<com.squareup.javapoet.ClassName> annotationClassNames()
Returns the set of annotations processed by this processing step.
-
-