Class DaggerTypeElement


  • public abstract class DaggerTypeElement
    extends java.lang.Object
    Wrapper type for a type element.
    • Constructor Detail

      • DaggerTypeElement

        public DaggerTypeElement()
    • Method Detail

      • fromJavac

        public static DaggerTypeElement fromJavac​(@Nullable
                                                  javax.lang.model.element.TypeElement element)
      • fromKsp

        public static DaggerTypeElement fromKsp​(@Nullable
                                                com.google.devtools.ksp.symbol.KSClassDeclaration declaration)
      • java

        @Nullable
        public abstract javax.lang.model.element.TypeElement java()
        Java representation for the type, returns null not using java annotation processor.
      • ksp

        @Nullable
        public abstract com.google.devtools.ksp.symbol.KSClassDeclaration ksp()
        KSP declaration for the element, returns null not using KSP.
      • hasAnnotation

        public final boolean hasAnnotation​(java.lang.String annotationName)
      • packageName

        public java.lang.String packageName()
      • qualifiedName

        public java.lang.String qualifiedName()
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object