Package dagger.spi.model
Class DaggerProcessingEnv
java.lang.Object
dagger.spi.model.DaggerProcessingEnv
@DoNotMock("Only use real implementations created by Dagger")
public abstract class DaggerProcessingEnv
extends Object
Wrapper type for an element.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents a type of backend used for compilation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract DaggerProcessingEnv.Backend
backend()
Returns the backend used in this compilation.abstract ProcessingEnvironment
javac()
Returns the Javac representation for the processing environment.abstract com.google.devtools.ksp.processing.SymbolProcessorEnvironment
ksp()
Returns the KSP representation for the processing environment.abstract com.google.devtools.ksp.processing.Resolver
resolver()
Returns the KSP representation for the resolver.
-
Constructor Details
-
DaggerProcessingEnv
public DaggerProcessingEnv()
-
-
Method Details
-
javac
Returns the Javac representation for the processing environment.- Throws:
IllegalStateException
- if the current backend isn't Javac.
-
ksp
public abstract com.google.devtools.ksp.processing.SymbolProcessorEnvironment ksp()Returns the KSP representation for the processing environment.- Throws:
IllegalStateException
- if the current backend isn't KSP.
-
resolver
public abstract com.google.devtools.ksp.processing.Resolver resolver()Returns the KSP representation for the resolver.- Throws:
IllegalStateException
- if the current backend isn't KSP.
-
backend
Returns the backend used in this compilation.
-