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 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 voidprocess(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, waitMethods inherited from interface androidx.room.compiler.processing.XProcessingStep
process, processOver
-
Constructor Details
-
BaseProcessingStep
public BaseProcessingStep()
-
-
Method Details
-
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, Map<String, ? extends 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<androidx.room.compiler.codegen.XClassName> 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
Returns the set of annotations processed by this processing step.
-