|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.transjvm.jvm.Attribute
public abstract class Attribute
Base class for attributes. All attributes are written to the class file as:
short attributeNameRef; int attributeLength; byte attributeData[attributeLength];Subclasses are responsible for writing the AttributeData.
Constructor Summary | |
---|---|
protected |
Attribute(java.lang.String name)
Constructor for the Attribute object. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of this Attribute. |
void |
write(ByteStream stream,
ConstantPool pool)
Writes this Attribute to the stream. |
protected abstract void |
writeData(ByteStream stream,
ConstantPool pool)
Write the data specific to this attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Attribute(java.lang.String name)
name
- Name of this Attribute.Method Detail |
---|
public final void write(ByteStream stream, ConstantPool pool)
stream
- Stream to write to.pool
- ConstantPool for this class.protected abstract void writeData(ByteStream stream, ConstantPool pool)
stream
- Stream to write to.pool
- ConstantPool for this class.public final java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |