1 6 7 package org.netbeans.modules.piaget.analyze; 8 9 import java.util.HashSet ; 10 import java.util.Iterator ; 11 import java.io.File ; 12 import org.netbeans.modules.piagetproject.property.Property; 13 14 18 public class WMAnalyzer extends WMParser{ 19 20 HashSet names; 21 22 23 public WMAnalyzer(File f) { 24 super(f); 25 } 26 27 protected void init(){ 28 names=new HashSet (); 29 } 30 31 protected void eof(){ 32 Iterator it=names.iterator(); 33 if(!it.hasNext()){ 34 return; 35 } 36 Analyzer.writeComment("Magnified Top Components:"); 37 while(it.hasNext()){ 38 String name = (String )it.next(); 39 Analyzer.writeComment(" * "+name); 40 Analyzer.writeProperty(Property.MAGNIFIED+name, name); 41 } 42 } 43 44 protected void analyzeMax(String s){ 45 names.add((Object )s); 46 } 47 48 } 49 | Popular Tags |