com.jasml.compiler
Class JavaClassDumpper

java.lang.Object
  extended bycom.jasml.compiler.JavaClassDumpper

public class JavaClassDumpper
extends java.lang.Object


Field Summary
(package private)  JavaClass clazz
           
(package private)  java.io.File destFile
           
(package private)  java.io.DataOutputStream out
           
 
Constructor Summary
JavaClassDumpper(JavaClass clazz, java.io.File destFile)
           
 
Method Summary
 void dump()
           
private  void dumpAttribute(Attribute attribute)
           
private  void dumpClassAttributes()
           
private  void dumpClassHeader()
          dump the magic, minor and major version
private  void dumpClassInfo()
           
private  void dumpConstantPool()
           
private  void dumpFields()
           
private  void dumpInterfaces()
          dump interfaces implemented by this class
private  void dumpMethods()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

java.io.DataOutputStream out

clazz

JavaClass clazz

destFile

java.io.File destFile
Constructor Detail

JavaClassDumpper

public JavaClassDumpper(JavaClass clazz,
                        java.io.File destFile)
Method Detail

dump

public void dump()
          throws java.io.IOException
Throws:
java.io.IOException

dumpClassHeader

private void dumpClassHeader()
                      throws java.io.IOException
dump the magic, minor and major version

Throws:
java.io.IOException

dumpConstantPool

private void dumpConstantPool()
                       throws java.io.IOException
Throws:
java.io.IOException

dumpClassInfo

private void dumpClassInfo()
                    throws java.io.IOException
Throws:
java.io.IOException

dumpInterfaces

private void dumpInterfaces()
                     throws java.io.IOException
dump interfaces implemented by this class

Throws:
java.io.IOException

dumpFields

private void dumpFields()
                 throws java.io.IOException
Throws:
java.io.IOException

dumpMethods

private void dumpMethods()
                  throws java.io.IOException
Throws:
java.io.IOException

dumpClassAttributes

private void dumpClassAttributes()
                          throws java.io.IOException
Throws:
java.io.IOException

dumpAttribute

private void dumpAttribute(Attribute attribute)
                    throws java.io.IOException
Throws:
java.io.IOException