Class 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 of ComponentNames 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 of ComponentNames that will base all component names off of the given root after mapping it with rootRenamer.
      • Methods inherited from class java.lang.Object

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

      • 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​(java.util.function.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.