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