Package dagger.hilt.processor.internal
Class ComponentNames
- java.lang.Object
-
- dagger.hilt.processor.internal.ComponentNames
-
public final class ComponentNames extends java.lang.Object
Utility 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.ClassName
generatedComponent(com.squareup.javapoet.ClassName root, com.squareup.javapoet.ClassName component)
Returns the name of the generated component.com.squareup.javapoet.ClassName
generatedComponentsWrapper(com.squareup.javapoet.ClassName root)
Returns the name of the generated component wrapper.com.squareup.javapoet.ClassName
generatedComponentTreeDeps(com.squareup.javapoet.ClassName root)
static ComponentNames
withoutRenaming()
Returns an instance ofComponentNames
that will base all component names off of the given root.static ComponentNames
withRenaming(java.util.function.Function<com.squareup.javapoet.ClassName,com.squareup.javapoet.ClassName> rootRenamer)
Returns an instance ofComponentNames
that will base all component names off of the given root after mapping it withrootRenamer
.
-
-
-
Method Detail
-
withoutRenaming
public static ComponentNames withoutRenaming()
Returns an instance ofComponentNames
that 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 ofComponentNames
that 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.
-
-