Package ee.ut.goblin.views

Examples of ee.ut.goblin.views.TreeLoc


    int lastln = -1;
    String cur_fun = "";
    Iterator<TreeLoc> it = nodes.iterator();
    while (it.hasNext()){
      TreeLoc tl = it.next();
     
      if (cur_fun.equals(tl.getFunction())){
        // same data applies within one function
        // between this location and last location
        for (int i = lastln+1; i < tl.getLine(); ++i)
          lineMap.put(new Integer(i), tl);
      } else {
        // don't fill the gap between functions
        cur_fun = tl.getFunction();
      }
     
      lineMap.put(new Integer(tl.getLine()), tl);
      lastln = tl.getLine();
    }
   
    return lineMap;
  }
View Full Code Here


  private static Map<String, LinkedList<TreeLoc>> splitByFilename(TreeLeaf[] nodes){
    HashMap<String, LinkedList<TreeLoc>> fileMap = new HashMap<String, LinkedList<TreeLoc>>(); /*<filename,LikedList<TreeLoc>*/
   
    for (int i = 0; i < nodes.length; ++i){
      if (nodes[i] instanceof TreeLoc ){
        TreeLoc tl = (TreeLoc) nodes[i];
        String key = tl.getFilename();
       
        LinkedList<TreeLoc> l;
        if  (fileMap.containsKey(key)) {
          l = fileMap.get(key);
          l.add(tl);
View Full Code Here

TOP

Related Classes of ee.ut.goblin.views.TreeLoc

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.