/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFilePrinter.print(w, out); } }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFilePrinter.print(w, out); } }
/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Prints the contents of the constant pool table. */ public void print() { print(new PrintWriter(System.out, true)); }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFilePrinter.print(w, out); } }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFileWriter.print(w, out); } }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFilePrinter.print(w, out); } }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFilePrinter.print(w, out); } }
/** * Main method. * * @param args <code>args[0]</code> is the class file name. */ public static void main(String[] args) throws Exception { if (args.length != 1) { System.err.println("Usage: java Dump <class file name>"); return; } DataInputStream in = new DataInputStream( new FileInputStream(args[0])); ClassFile w = new ClassFile(in); PrintWriter out = new PrintWriter(System.out, true); out.println("*** constant pool ***"); w.getConstPool().print(out); out.println(); out.println("*** members ***"); ClassFilePrinter.print(w, out); } }
public static void main(String[] args) throws Exception { pool = ClassPool.getDefault(); pool.appendSystemPath(); pool.insertClassPath("."); CtClass clazz = pool.get(args[0]); clazz.getClassFile2().getConstPool().print(); printClassAttributes(clazz); }
System.out.println("method: " + mi.getName()); System.out.println("CONST POOL: "); mi.getConstPool().print(); System.out.println("-------------"); invisible = (AnnotationsAttribute) mi.getAttribute(AnnotationsAttribute.invisibleTag); System.out.println("field: " + mi.getName()); System.out.println("CONST POOL: "); mi.getConstPool().print(); System.out.println("field: " + mi.getName()); invisible = (AnnotationsAttribute) mi.getAttribute(AnnotationsAttribute.invisibleTag);
file.getConstPool().print(out); out.println(); out.println("*** members ***");