equal
deleted
inserted
replaced
33 /** |
33 /** |
34 * Entry point for javap, class file disassembler. |
34 * Entry point for javap, class file disassembler. |
35 * |
35 * |
36 * @author Sucheta Dambalkar (Adopted code from old javap) |
36 * @author Sucheta Dambalkar (Adopted code from old javap) |
37 */ |
37 */ |
38 public class Main{ |
38 public class Main { |
39 |
39 |
40 private Vector classList = new Vector(); |
40 private Vector<String> classList = new Vector<String>(); |
41 private PrintWriter out; |
41 private PrintWriter out; |
42 JavapEnvironment env = new JavapEnvironment(); |
42 JavapEnvironment env = new JavapEnvironment(); |
43 private static boolean errorOccurred = false; |
43 private static boolean errorOccurred = false; |
44 private static final String progname = "javap"; |
44 private static final String progname = "javap"; |
45 |
45 |
199 /** |
199 /** |
200 * Display results |
200 * Display results |
201 */ |
201 */ |
202 private void displayResults() { |
202 private void displayResults() { |
203 for (int i = 0; i < classList.size() ; i++ ) { |
203 for (int i = 0; i < classList.size() ; i++ ) { |
204 String Name = (String)classList.elementAt(i); |
204 String Name = classList.elementAt(i); |
205 InputStream classin = env.getFileInputStream(Name); |
205 InputStream classin = env.getFileInputStream(Name); |
206 |
206 |
207 try { |
207 try { |
208 JavapPrinter printer = new JavapPrinter(classin, out, env); |
208 JavapPrinter printer = new JavapPrinter(classin, out, env); |
209 printer.print(); // actual do display |
209 printer.print(); // actual do display |