Package dagger.hilt.processor.internal
Class ComponentNames
java.lang.Object
dagger.hilt.processor.internal.ComponentNames
Utility class for getting the generated component name.
This should not be used externally.
-
Method Summary
Modifier and TypeMethodDescriptioncom.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 ComponentNamesReturns an instance ofComponentNamesthat will base all component names off of the given root.static ComponentNameswithRenaming(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 Details
-
withoutRenaming
Returns an instance ofComponentNamesthat 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 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.
-