Class ComponentNames

java.lang.Object
dagger.hilt.processor.internal.ComponentNames

public final class ComponentNames extends Object
Utility class for getting the generated component name.

This should not be used externally.

  • Method Details

    • withoutRenaming

      public static ComponentNames withoutRenaming()
      Returns an instance of ComponentNames that will base all component names off of the given root.
    • withRenaming

      public static ComponentNames withRenaming(Function<com.squareup.javapoet.ClassName,com.squareup.javapoet.ClassName> rootRenamer)
      Returns an instance of ComponentNames that will base all component names off of the given root after mapping it with rootRenamer.
    • generatedComponentTreeDeps

      public com.squareup.javapoet.ClassName generatedComponentTreeDeps(com.squareup.javapoet.ClassName root)
    • generatedComponentsWrapper

      public com.squareup.javapoet.ClassName generatedComponentsWrapper(com.squareup.javapoet.ClassName root)
      Returns the name of the generated component wrapper.
    • generatedComponent

      public com.squareup.javapoet.ClassName generatedComponent(com.squareup.javapoet.ClassName root, com.squareup.javapoet.ClassName component)
      Returns the name of the generated component.