Class GenericAttribute
java.lang.Object
EDU.purdue.cs.bloat.file.Attribute
EDU.purdue.cs.bloat.file.GenericAttribute
The Java Virtual Machine Specification allows implementors to invent their
own attributes. GenericAttribute models attributes whose name BLOAT does not
recognize.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionGenericAttribute(DataInputStream in, int nameIndex, int length) Constructor. -
Method Summary
-
Constructor Details
-
GenericAttribute
Constructor. Create an attribute from a data stream.- Parameters:
in- The data stream of the class file.nameIndex- The index into the constant pool of the name of the attribute.length- The length of the attribute, excluding the header.- Throws:
IOException- If an error occurs while reading.
-
-
Method Details
-
writeData
Write the attribute to a data stream.- Specified by:
writeDatain classAttribute- Parameters:
out- The data stream of the class file.- Throws:
IOException- If an error occurs while writing.
-
clone
-