Class DaggerProcessingEnv

java.lang.Object
dagger.spi.model.DaggerProcessingEnv

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

    • DaggerProcessingEnv

      public DaggerProcessingEnv()
  • Method Details

    • javac

      public abstract ProcessingEnvironment javac()
      Returns the Javac representation for the processing environment.
      Throws:
      IllegalStateException - if the current backend isn't Javac.
    • ksp

      public abstract com.google.devtools.ksp.processing.SymbolProcessorEnvironment ksp()
      Returns the KSP representation for the processing environment.
      Throws:
      IllegalStateException - if the current backend isn't KSP.
    • resolver

      public abstract com.google.devtools.ksp.processing.Resolver resolver()
      Returns the KSP representation for the resolver.
      Throws:
      IllegalStateException - if the current backend isn't KSP.
    • backend

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