Class Dump

  • public class Dump
    extends java.lang.Object
    Dump is a tool for viewing the class definition in the given class file. Unlike the JDK javap tool, Dump works even if the class file is broken.

    For example,

    % java foo.class

    prints the contents of the constant pool and the list of methods and fields.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Main method.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main method.
        args - args[0] is the class file name.