Package dagger.spi.model
Class DaggerType
java.lang.Object
dagger.spi.model.DaggerType
@DoNotMock("Only use real implementations created by Dagger")
public abstract class DaggerType
extends Object
Wrapper type for a type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract DaggerProcessingEnv.Backend
backend()
Returns the backend used in this compilation.abstract TypeMirror
javac()
Returns the Javac representation for the type.abstract com.google.devtools.ksp.symbol.KSType
ksp()
Returns the KSP representation for the type.
-
Constructor Details
-
DaggerType
public DaggerType()
-
-
Method Details
-
javac
Returns the Javac representation for the type.- Throws:
IllegalStateException
- if the current backend isn't Javac.
-
ksp
public abstract com.google.devtools.ksp.symbol.KSType ksp()Returns the KSP representation for the type.- Throws:
IllegalStateException
- if the current backend isn't KSP.
-
backend
Returns the backend used in this compilation.
-