Class ClassFilePrinter


  • public class ClassFilePrinter
    extends java.lang.Object
    A utility class for priting the contents of a class file. It prints a constant pool table, fields, and methods in a human readable representation.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void print​(ClassFile cf)
      Prints the contents of a class file to the standard output stream.
      static void print​(ClassFile cf, java.io.PrintWriter out)
      Prints the contents of a class file.
      (package private) static void printAttributes​(java.util.List<AttributeInfo> list, java.io.PrintWriter out, char kind)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassFilePrinter

        public ClassFilePrinter()
    • Method Detail

      • print

        public static void print​(ClassFile cf)
        Prints the contents of a class file to the standard output stream.
      • print

        public static void print​(ClassFile cf,
                                 java.io.PrintWriter out)
        Prints the contents of a class file.
      • printAttributes

        static void printAttributes​(java.util.List<AttributeInfo> list,
                                    java.io.PrintWriter out,
                                    char kind)