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