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 Details

    • DaggerAnnotation

      public DaggerAnnotation()
  • Method Details

    • annotationTypeElement

      public abstract DaggerTypeElement annotationTypeElement()
    • javac

      public abstract AnnotationMirror 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

      public abstract DaggerProcessingEnv.Backend backend()
      Returns the backend used in this compilation.