Class DaggerAnnotation


  • @DoNotMock("Only use real implementations created by Dagger")
    public abstract class DaggerAnnotation
    extends java.lang.Object
    Wrapper type for an annotation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract DaggerTypeElement annotationTypeElement()  
      abstract DaggerProcessingEnv.Backend backend()
      Returns the backend used in this compilation.
      abstract javax.lang.model.element.AnnotationMirror javac()
      Returns the Javac representation for the annotation.
      abstract com.google.devtools.ksp.symbol.KSAnnotation ksp()
      Returns the KSP representation for the annotation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DaggerAnnotation

        public DaggerAnnotation()
    • Method Detail

      • 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.