jasm.io
Class ClassFileWriter
java.lang.Object
jasm.io.ClassFileWriter
public class ClassFileWriter
- extends java.lang.Object
Constructor Summary |
ClassFileWriter(java.io.OutputStream o)
Construct a ClassFileWriter Object that the given output stream to write
ClassFiles. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
output
protected final BinaryOutputStream output
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
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.