|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.AttributeList
List of classfile attributes. See VMS 4.7: Attributes
Constructor Summary | |
(package private) |
AttributeList()
Constructs an empty attribute list. |
(package private) |
AttributeList(Attribute att1)
Constructs a one element attribute list. |
(package private) |
AttributeList(Attribute att1,
Attribute att2)
Constructs a two elements attribute list |
(package private) |
AttributeList(Attribute att1,
Attribute att2,
Attribute att3)
Constructs a three elements attribute list |
(package private) |
AttributeList(Attribute att1,
Attribute att2,
Attribute att3,
Attribute att4)
Constructs a four elements attribute list |
(package private) |
AttributeList(java.io.DataInput in,
ConstantPool cp,
boolean noCode)
Constructs an attribute list from a class file stream. |
(package private) |
AttributeList(java.io.DataInput in,
ConstantPool cp,
Instruction[] instructions)
Constructs an sub-attribute list of CodeInfo from a class file stream. |
Method Summary | |
(package private) void |
add(Attribute attr)
Adds an attribute to the list of attributes |
(package private) Attribute |
get(int tag)
Return the first attribute for this tag |
(package private) int |
getSize()
Returns the space in bytes used by this attribute in the classfile |
(package private) boolean |
remove(int tag)
Removes an attribute from the list of attributes |
(package private) void |
resolveConstants(ConstantPool cp)
Insert or check location of constant values in constant pool |
(package private) void |
write(ConstantPool cp,
java.io.DataOutput out)
Write this class into the the file (out) getting data position from the constant pool |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
AttributeList()
AttributeList(Attribute att1)
AttributeList(Attribute att1, Attribute att2)
AttributeList(Attribute att1, Attribute att2, Attribute att3)
AttributeList(Attribute att1, Attribute att2, Attribute att3, Attribute att4)
AttributeList(java.io.DataInput in, ConstantPool cp, boolean noCode) throws java.io.IOException, ClassFileFormatException
in
- The stream to read from.cp
- The constant pool.noCode
- Do not read code attribute.java.io.IOException
- An io problem has occured.ClassFileFormatException
- Attempt to read a bad classfile info.AttributeList(java.io.DataInput in, ConstantPool cp, Instruction[] instructions) throws java.io.IOException, ClassFileFormatException
in
- the stream to read fromcp
- the constant poolinstructions
- (sparse) array of instructionsjava.io.IOException
- an io problem has occuredClassFileFormatException
- attempt to
write a bad classfile infoMethod Detail |
final Attribute get(int tag)
tag
- the tag that identifies the attributefinal void add(Attribute attr)
attr
- the attribute to add to the listfinal boolean remove(int tag)
tag
- the tag that identifies the attributeint getSize()
void resolveConstants(ConstantPool cp) throws ClassFileFormatException
cp
- the constant pool for this classvoid write(ConstantPool cp, java.io.DataOutput out) throws java.io.IOException, ClassFileFormatException
cp
- the constant pool that contain all dataout
- the file where to write this object infojava.io.IOException
- an io problem has occuredClassFileFormatException
- attempt to
write a bad classfile info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |