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 java.lang.ObjectWrapper type for an element.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDaggerProcessingEnv.BackendRepresents a type of backend used for compilation.
-
Constructor Summary
Constructors Constructor Description DaggerProcessingEnv()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract DaggerProcessingEnv.Backendbackend()Returns the backend used in this compilation.abstract javax.annotation.processing.ProcessingEnvironmentjavac()Returns the Javac representation for the processing environment.abstract com.google.devtools.ksp.processing.SymbolProcessorEnvironmentksp()Returns the KSP representation for the processing environment.abstract com.google.devtools.ksp.processing.Resolverresolver()Returns the KSP representation for the resolver.
-
-
-
Method Detail
-
javac
public abstract javax.annotation.processing.ProcessingEnvironment javac()
Returns the Javac representation for the processing environment.- Throws:
java.lang.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:
java.lang.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:
java.lang.IllegalStateException- if the current backend isn't KSP.
-
backend
public abstract DaggerProcessingEnv.Backend backend()
Returns the backend used in this compilation.
-
-