Class DaggerElement


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

      Constructors 
      Constructor Description
      DaggerElement()  
    • Method Summary

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

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

      • DaggerElement

        public DaggerElement()
    • Method Detail

      • javac

        public abstract javax.lang.model.element.Element javac()
        Returns the Javac representation for the element.
        Throws:
        java.lang.IllegalStateException - if the current backend isn't Javac.
      • ksp

        public abstract com.google.devtools.ksp.symbol.KSAnnotated ksp()
        Returns the KSP representation for the element.
        Throws:
        java.lang.IllegalStateException - if the current backend isn't KSP.