question: public static String scopeHierarchyToString ( MortarScope mortarScope ) { StringBuilder result = new StringBuilder ( "Mortar Hierarchy:\n" ) ; MortarScope rootScope = getRootScope ( mortarScope ) ; Node rootNode = new MortarScopeNode ( rootScope ) ; nodeHierarchyToString ( result , 0 , 0 , rootNode ) ; return result . toString ( ) ; }
target:  Format the scope hierarchy as a multi line string containing the scope names. Can be given any scope in the hierarchy, will always print the whole scope hierarchy. Also prints the Dagger modules containing entry points (injects). We've only tested this with Dagger 1.1.0, please report any bug you may find.