Class Dump


  • public class Dump
    extends 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 javassist.tools.Dump foo.class

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

    • Method Detail

      • main

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