koala.dynamicjava.classfile
Class BytecodeComponent
java.lang.Object
|
+--koala.dynamicjava.classfile.BytecodeComponent
- Direct Known Subclasses:
- AttributeInfo, AttributeOwnerComponent
- public abstract class BytecodeComponent
- extends java.lang.Object
This class represents a component of the bytecode 'ClassFile' format
Method Summary |
ConstantPool |
getConstantPool()
Returns the constant pool |
abstract void |
write(java.io.DataOutputStream out)
Writes the class file to the given output stream |
void |
write(java.io.OutputStream out)
Writes the class file to the given output stream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
constantPool
protected ConstantPool constantPool
- The constant pool
nameIndex
protected short nameIndex
- The index of the name of this component
BytecodeComponent
protected BytecodeComponent(ConstantPool cp,
short ni)
- Initializes a new bytecode component
- Parameters:
cp
- the constant poolni
- the name index in the constant pool
getConstantPool
public ConstantPool getConstantPool()
- Returns the constant pool
write
public void write(java.io.OutputStream out)
throws java.io.IOException
- Writes the class file to the given output stream
write
public abstract void write(java.io.DataOutputStream out)
throws java.io.IOException
- Writes the class file to the given output stream
Copyright © 2001 Stephane Hillion. All Rights Reserved.