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 java.lang.ObjectWrapper type for a type element.
-
-
Constructor Summary
Constructors Constructor Description DaggerTypeElement()
-
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.lang.model.element.TypeElementjavac()Returns the Javac representation for the type element.abstract com.google.devtools.ksp.symbol.KSClassDeclarationksp()Returns the KSP representation for the type element.
-
-
-
Method Detail
-
javac
public abstract javax.lang.model.element.TypeElement javac()
Returns the Javac representation for the type element.- Throws:
java.lang.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:
java.lang.IllegalStateException- if the current backend isn't KSP.
-
backend
public abstract DaggerProcessingEnv.Backend backend()
Returns the backend used in this compilation.
-
-