Class RootMetadata

java.lang.Object
dagger.hilt.processor.internal.root.RootMetadata

public final class RootMetadata extends Object
Contains metadata about the given hilt root.
  • Method Summary

    Modifier and Type
    Method
    Description
    dagger.hilt.processor.internal.root.ComponentTree
     
     
    com.google.common.collect.ImmutableSet<com.squareup.javapoet.TypeName>
    entryPoints(com.squareup.javapoet.ClassName componentName)
     
    com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XTypeElement>
    modules(com.squareup.javapoet.ClassName componentName)
     
    com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XTypeElement>
    modulesThatDaggerCannotConstruct(com.squareup.javapoet.ClassName componentName)
    Returns all modules in the given component that do not have accessible default constructors.
    dagger.hilt.processor.internal.root.Root
     
    com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName>
    scopes(com.squareup.javapoet.ClassName componentName)
     
    dagger.hilt.processor.internal.root.TestRootMetadata
     
    boolean
     

    Methods inherited from class java.lang.Object

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

    • root

      public dagger.hilt.processor.internal.root.Root root()
    • componentTree

      public dagger.hilt.processor.internal.root.ComponentTree componentTree()
    • deps

      public ComponentDependencies deps()
    • modules

      public com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XTypeElement> modules(com.squareup.javapoet.ClassName componentName)
    • entryPoints

      public com.google.common.collect.ImmutableSet<com.squareup.javapoet.TypeName> entryPoints(com.squareup.javapoet.ClassName componentName)
    • scopes

      public com.google.common.collect.ImmutableSet<com.squareup.javapoet.ClassName> scopes(com.squareup.javapoet.ClassName componentName)
    • modulesThatDaggerCannotConstruct

      public com.google.common.collect.ImmutableSet<androidx.room.compiler.processing.XTypeElement> modulesThatDaggerCannotConstruct(com.squareup.javapoet.ClassName componentName)
      Returns all modules in the given component that do not have accessible default constructors. Note that a non-static module nested in an outer class is considered to have no default constructors, since an instance of the outer class is needed to construct the module. This also filters out framework modules directly referenced by the codegen, since those are already known about and are specifically handled in the codegen.
    • testRootMetadata

      public dagger.hilt.processor.internal.root.TestRootMetadata testRootMetadata()
    • waitForBindValue

      public boolean waitForBindValue()