Package dagger.hilt.processor.internal
Class ComponentNames
- java.lang.Object
-
- dagger.hilt.processor.internal.ComponentNames
-
public final class ComponentNames extends java.lang.ObjectUtility class for getting the generated component name.This should not be used externally.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.squareup.javapoet.ClassNamegeneratedComponent(com.squareup.javapoet.ClassName root, com.squareup.javapoet.ClassName component)Returns the name of the generated component.com.squareup.javapoet.ClassNamegeneratedComponentsWrapper(com.squareup.javapoet.ClassName root)Returns the name of the generated component wrapper.com.squareup.javapoet.ClassNamegeneratedComponentTreeDeps(com.squareup.javapoet.ClassName root)static ComponentNameswithoutRenaming()Returns an instance ofComponentNamesthat will base all component names off of the given root.static ComponentNameswithRenaming(java.util.function.Function<com.squareup.javapoet.ClassName,com.squareup.javapoet.ClassName> rootRenamer)Returns an instance ofComponentNamesthat will base all component names off of the given root after mapping it withrootRenamer.
-
-
-
Method Detail
-
withoutRenaming
public static ComponentNames withoutRenaming()
Returns an instance ofComponentNamesthat will base all component names off of the given root.
-
withRenaming
public static ComponentNames withRenaming(java.util.function.Function<com.squareup.javapoet.ClassName,com.squareup.javapoet.ClassName> rootRenamer)
Returns an instance ofComponentNamesthat will base all component names off of the given root after mapping it withrootRenamer.
-
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.
-
-