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();
}

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 ( ) ; }
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 .
