Package dagger.spi.model
Class DaggerAnnotation
- java.lang.Object
-
- dagger.spi.model.DaggerAnnotation
-
public abstract class DaggerAnnotation extends java.lang.ObjectWrapper type for an annotation.
-
-
Constructor Summary
Constructors Constructor Description DaggerAnnotation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DaggerTypeElementannotationTypeElement()DaggerProcessingEnv.Backendbackend()static DaggerAnnotationfromJavac(DaggerTypeElement annotationTypeElement, javax.lang.model.element.AnnotationMirror annotation)static DaggerAnnotationfromKsp(DaggerTypeElement annotationTypeElement, com.google.devtools.ksp.symbol.KSAnnotation ksp)abstract javax.lang.model.element.AnnotationMirrorjava()java representation for the annotation, returnsnullif the annotation isn't a java element.abstract com.google.devtools.ksp.symbol.KSAnnotationksp()KSP declaration for the annotation, returnsnullnot using KSP.java.lang.StringtoString()
-
-
-
Method Detail
-
fromJavac
public static DaggerAnnotation fromJavac(DaggerTypeElement annotationTypeElement, javax.lang.model.element.AnnotationMirror annotation)
-
fromKsp
public static DaggerAnnotation fromKsp(DaggerTypeElement annotationTypeElement, com.google.devtools.ksp.symbol.KSAnnotation ksp)
-
annotationTypeElement
public abstract DaggerTypeElement annotationTypeElement()
-
java
@Nullable public abstract javax.lang.model.element.AnnotationMirror java()
java representation for the annotation, returnsnullif the annotation isn't a java element.
-
ksp
@Nullable public abstract com.google.devtools.ksp.symbol.KSAnnotation ksp()
KSP declaration for the annotation, returnsnullnot using KSP.
-
backend
public DaggerProcessingEnv.Backend backend()
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-