Class DaggerProcessingEnv


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

      Nested Classes 
      Modifier and Type Class Description
      static class  DaggerProcessingEnv.Backend
      Represents a type of backend used for compilation.
    • 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.annotation.processing.ProcessingEnvironment javac()
      Returns the Javac representation for the processing environment.
      abstract com.google.devtools.ksp.processing.SymbolProcessorEnvironment ksp()
      Returns the KSP representation for the processing environment.
      abstract com.google.devtools.ksp.processing.Resolver resolver()
      Returns the KSP representation for the resolver.
      • Methods inherited from class java.lang.Object

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

      • DaggerProcessingEnv

        public DaggerProcessingEnv()
    • Method Detail

      • javac

        public abstract javax.annotation.processing.ProcessingEnvironment javac()
        Returns the Javac representation for the processing environment.
        Throws:
        java.lang.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:
        java.lang.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:
        java.lang.IllegalStateException - if the current backend isn't KSP.