jasm.io
Class ClassFileWriter

java.lang.Object
  extended by jasm.io.ClassFileWriter

public class ClassFileWriter
extends java.lang.Object


Field Summary
protected  BinaryOutputStream output
           
 
Constructor Summary
ClassFileWriter(java.io.OutputStream o)
          Construct a ClassFileWriter Object that the given output stream to write ClassFiles.
 
Method Summary
 void write(ClassFile cfile)
           
protected  void writeClassModifiers(java.util.List<Modifier> modifiers)
           
protected  void writeField(ClassFile.Field f, java.util.HashMap<Constant.Info,java.lang.Integer> constantPool)
           
protected  void writeFieldModifiers(java.util.List<Modifier> modifiers)
           
protected  void writeMethod(ClassFile.Method m, java.util.HashMap<Constant.Info,java.lang.Integer> constantPool)
           
protected  void writeMethodModifiers(java.util.List<Modifier> modifiers)
           
protected static void writeModifiers(java.util.List<Modifier> modifiers, int[] masks, Modifier[] mods, BinaryOutputStream output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

output

protected final BinaryOutputStream output
Constructor Detail

ClassFileWriter

public ClassFileWriter(java.io.OutputStream o)
Construct a ClassFileWriter Object that the given output stream to write ClassFiles.

Parameters:
o - Output stream for class bytes
Method Detail

write

public void write(ClassFile cfile)
           throws java.io.IOException
Throws:
java.io.IOException

writeField

protected void writeField(ClassFile.Field f,
                          java.util.HashMap<Constant.Info,java.lang.Integer> constantPool)
                   throws java.io.IOException
Throws:
java.io.IOException

writeMethod

protected void writeMethod(ClassFile.Method m,
                           java.util.HashMap<Constant.Info,java.lang.Integer> constantPool)
                    throws java.io.IOException
Throws:
java.io.IOException

writeClassModifiers

protected void writeClassModifiers(java.util.List<Modifier> modifiers)
                            throws java.io.IOException
Throws:
java.io.IOException

writeFieldModifiers

protected void writeFieldModifiers(java.util.List<Modifier> modifiers)
                            throws java.io.IOException
Throws:
java.io.IOException

writeMethodModifiers

protected void writeMethodModifiers(java.util.List<Modifier> modifiers)
                             throws java.io.IOException
Throws:
java.io.IOException

writeModifiers

protected static void writeModifiers(java.util.List<Modifier> modifiers,
                                     int[] masks,
                                     Modifier[] mods,
                                     BinaryOutputStream output)
                              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2013 David J. Pearce. All Rights Reserved.