Class ComponentPath


  • public abstract class ComponentPath
    extends java.lang.Object
    A path containing a component and all of its ancestor components.
    • Constructor Detail

      • ComponentPath

        public ComponentPath()
    • Method Detail

      • rootComponent

        public final DaggerTypeElement rootComponent()
        Returns the root Component- or ProductionComponent-annotated type
      • currentComponent

        @Memoized
        public DaggerTypeElement currentComponent()
        Returns the component at the end of the path.
      • parent

        public final ComponentPath parent()
        Returns this path's parent path.
        Throws:
        java.lang.IllegalStateException - if the current graph is the root component
      • childPath

        public final ComponentPath childPath​(DaggerTypeElement child)
        Returns the path from the root component to the child of the current component.
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        @Memoized
        public abstract int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public abstract boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object