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 java.lang.ObjectWrapper type for an annotation.
-
-
Constructor Summary
Constructors Constructor Description DaggerAnnotation()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract DaggerTypeElementannotationTypeElement()abstract DaggerProcessingEnv.Backendbackend()Returns the backend used in this compilation.abstract javax.lang.model.element.AnnotationMirrorjavac()Returns the Javac representation for the annotation.abstract com.google.devtools.ksp.symbol.KSAnnotationksp()Returns the KSP representation for the annotation.
-
-
-
Method Detail
-
annotationTypeElement
public abstract DaggerTypeElement annotationTypeElement()
-
javac
public abstract javax.lang.model.element.AnnotationMirror javac()
Returns the Javac representation for the annotation.- Throws:
java.lang.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:
java.lang.IllegalStateException- if the current backend isn't KSP.
-
backend
public abstract DaggerProcessingEnv.Backend backend()
Returns the backend used in this compilation.
-
-