Class Components


  • public final class Components
    extends java.lang.Object
    Helper methods for defining components and the component hierarchy.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.common.collect.ImmutableSet<ComponentDescriptor> getComponentDescriptors​(javax.lang.model.util.Elements elements, javax.lang.model.element.Element element)
      Returns the ComponentDescriptors for a given element annotated with dagger.hilt.InstallIn.
      static com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> getComponents​(javax.lang.model.util.Elements elements, javax.lang.model.element.Element element)
      Returns the dagger.hilt.InstallIn components for a given element.
      static com.squareup.javapoet.AnnotationSpec getInstallInAnnotationSpec​(com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> components)  
      • Methods inherited from class java.lang.Object

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

      • getComponentDescriptors

        public static com.google.common.collect.ImmutableSet<ComponentDescriptor> getComponentDescriptors​(javax.lang.model.util.Elements elements,
                                                                                                          javax.lang.model.element.Element element)
        Returns the ComponentDescriptors for a given element annotated with dagger.hilt.InstallIn.
      • getComponents

        public static com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> getComponents​(javax.lang.model.util.Elements elements,
                                                                                                            javax.lang.model.element.Element element)
        Returns the dagger.hilt.InstallIn components for a given element.
      • getInstallInAnnotationSpec

        public static com.squareup.javapoet.AnnotationSpec getInstallInAnnotationSpec​(com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> components)