Package dagger.internal.codegen
Class ComponentProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor
dagger.internal.codegen.ComponentProcessor
- All Implemented Interfaces:
androidx.room.compiler.processing.XBasicAnnotationProcessor,Processor
@IncrementalAnnotationProcessor(ISOLATING)
@AutoService(javax.annotation.processing.Processor.class)
public final class ComponentProcessor
extends androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor
The Javac annotation processor responsible for generating the classes that drive the Dagger
implementation.
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentProcessorforTesting(dagger.spi.BindingGraphPlugin... testingPlugins) Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader.static ComponentProcessorforTesting(Iterable<dagger.spi.BindingGraphPlugin> testingPlugins) Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader.com.google.common.collect.ImmutableSet<String>voidinitialize(androidx.room.compiler.processing.XProcessingEnv env) voidpostRound(androidx.room.compiler.processing.XProcessingEnv env, androidx.room.compiler.processing.XRoundEnv roundEnv) voidpreRound(androidx.room.compiler.processing.XProcessingEnv env, androidx.room.compiler.processing.XRoundEnv roundEnv) Iterable<androidx.room.compiler.processing.XProcessingStep>static ComponentProcessorwithTestPlugins(dagger.spi.model.BindingGraphPlugin... testingPlugins) Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader.static ComponentProcessorwithTestPlugins(Iterable<dagger.spi.model.BindingGraphPlugin> testingPlugins) Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader.Methods inherited from class androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor
getSupportedAnnotationTypes, getXProcessingEnv, init, processMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, isInitialized
-
Constructor Details
-
ComponentProcessor
public ComponentProcessor()
-
-
Method Details
-
withTestPlugins
public static ComponentProcessor withTestPlugins(dagger.spi.model.BindingGraphPlugin... testingPlugins) Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader. -
withTestPlugins
public static ComponentProcessor withTestPlugins(Iterable<dagger.spi.model.BindingGraphPlugin> testingPlugins) Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader. -
forTesting
Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader. -
forTesting
Creates a component processor that uses givenBindingGraphPlugins instead of loading them from aServiceLoader. -
initialize
public void initialize(androidx.room.compiler.processing.XProcessingEnv env) -
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptionsin interfaceProcessor- Overrides:
getSupportedOptionsin classAbstractProcessor
-
processingSteps
-
preRound
public void preRound(androidx.room.compiler.processing.XProcessingEnv env, androidx.room.compiler.processing.XRoundEnv roundEnv) -
postRound
public void postRound(androidx.room.compiler.processing.XProcessingEnv env, androidx.room.compiler.processing.XRoundEnv roundEnv)
-