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