Class ClassPrinter


  • public class ClassPrinter
    extends java.lang.Object
    This class prints the contents of a class file. It's like an alternative to javap that shows more information.

    In Unix I run it like this: java -cp ~/dev/shrike/shrike com.ibm.wala.shrikeBT.shrikeCT.tools.ClassPrinter test.jar This will print the contents of every class in the JAR file.

    • Constructor Summary

      Constructors 
      Constructor Description
      ClassPrinter​(java.io.PrintWriter w)
      Get ready to print a class to the given output stream.
    • Constructor Detail

      • ClassPrinter

        public ClassPrinter​(java.io.PrintWriter w)
        Get ready to print a class to the given output stream.
    • Method Detail

      • setPrintLineNumberInfo

        public void setPrintLineNumberInfo​(boolean b)
        Controls whether to print line number information. The default is 'true'.
      • setPrintConstantPool

        public void setPrintConstantPool​(boolean b)
        Controls whether to print all the constant pool entries. The default is 'true'.
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception