Beispiel #1
0
  public void clearVisitedInfo() {
    visitedPackagesForInstances.clear();
    visitedPackagesForExtends.clear();
    visitedPackagesForImplements.clear();

    // Clearing the methods visited info
    for (LibMethodHolder lmh : methods) {
      lmh.clearVisitedInfo();
    }
  }
Beispiel #2
0
 /**
  * Function for sorting methods according to their end rankings This method is used before
  * priting.
  */
 public void sortMethods() {
   LibMethodHolder insert;
   for (int next = 1; next < methods.length; next++) {
     insert = methods[next];
     int moveItem = next;
     while (moveItem > 0 && methods[moveItem - 1].getEndRanking() > insert.getEndRanking()) {
       methods[moveItem] = methods[moveItem - 1];
       moveItem--;
     }
     methods[moveItem] = insert;
   }
 }