|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.Attribute
org.multijava.util.classfile.UniverseFieldAttribute
This class implements a JUTS field attribute. It is basically just a wrapper for one byte that describes the universe type modifier for a field of reference or array type. The format of the attribute (not including the standard initial six bytes): - the one and only byte is the encoded universe type modifier for this field This attribute is recognized by UniverseAttributeParser. VMS 4.7.1: The attribute's name is org.multijava.universe_field
UniverseAttributeParser| Field Summary | |
private static AsciiConstant |
attr
|
private byte |
byteConstant
the byte holding the encoded universe type modifier |
(package private) static String |
tagString
the attribute's name |
| Constructor Summary | |
UniverseFieldAttribute(byte byteConstant)
Create a universe field attribute for an encoded universe type modifier. |
|
UniverseFieldAttribute(DataInput in,
ConstantPool cp)
Constructs a universe field attribute from a class file stream. |
|
| Method Summary | |
byte |
getByteConstant()
Return the universe of the reference type. |
protected int |
getSize()
Returns the space in bytes used by this attribute in the classfile. |
protected int |
getTag()
Returns the attribute's tag. |
protected void |
resolveConstants(ConstantPool cp)
Insert or check location of constant value on constant pool. |
protected void |
write(ConstantPool cp,
DataOutput out)
Write this class into the the file (out) getting data position from the constant pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
static final String tagString
private static AsciiConstant attr
private byte byteConstant
| Constructor Detail |
public UniverseFieldAttribute(byte byteConstant)
byteConstant - the encoded universe type modifier
public UniverseFieldAttribute(DataInput in,
ConstantPool cp)
throws IOException,
ClassFileFormatException
in - the stream to read fromcp - the constant pool
IOException - an IO problem has occurred
ClassFileFormatException - the classfile is malformed| Method Detail |
protected int getTag()
protected int getSize()
public byte getByteConstant()
byteConstantprotected void resolveConstants(ConstantPool cp)
cp - the constant pool for this class
protected void write(ConstantPool cp,
DataOutput out)
throws IOException
cp - the constant pool that contain all dataout - the file where to write this object info
IOException - an io problem has occured
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||