Class DaggerTypeElement

java.lang.Object
dagger.spi.model.DaggerTypeElement

@DoNotMock("Only use real implementations created by Dagger") public abstract class DaggerTypeElement extends Object
Wrapper type for a type element.
  • Constructor Details

    • DaggerTypeElement

      public DaggerTypeElement()
  • Method Details

    • javac

      public abstract TypeElement javac()
      Returns the Javac representation for the type element.
      Throws:
      IllegalStateException - if the current backend isn't Javac.
    • ksp

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

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