jellyj.classfile.util
Class Class2HTML
- public class Class2HTML
- implements Constants
Read class file(s) and convert them into HTML files.
Given a JavaClass object "class" that is in package "package" five files
will be created in the specified directory.
- "package"."class".html as the main file which defines the frames for
the following subfiles.
- "package"."class"_attributes.html contains all (known) attributes found in the file
- "package"."class"_cp.html contains the constant pool
- "package"."class"_code.html contains the byte code
- "package"."class"_methods.html contains references to all methods and fields of the class
All subfiles reference each other appropiately, e.g. clicking on a
method in the Method's frame will jump to the appropiate method in
the Code frame.- Author:
- JellyJ Design Group
Constructor Summary |
Class2HTML(JavaClass java_class, String dir) Write contents of the given JavaClass into HTML files. |
Method Summary |
static void | main(String[] argv) |
(package private) static String | referenceClass(int index) Utility method that converts a class reference in the constant pool,
i.e. |
(package private) final static String | referenceType(String type) |
(package private) static String | toHTML(String str) |
Class2HTML
public Class2HTML(JavaClass java_class, String dir)
throws java.io.IOException
- Write contents of the given JavaClass into HTML files.
- Parameters:
- java_class - The class to write
- dir - The directory to put the files in
main
public static void main(String[] argv)
referenceClass
static String referenceClass(int index)
- Utility method that converts a class reference in the constant pool,
i.e. an index to a string.
referenceType
final static String referenceType(String type)
toHTML
static String toHTML(String str)
to Class jellyj.classfile.javaclass.JavaClass
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class jellyj.classfile.javaclass.ConstantPool