Package EDU.purdue.cs.bloat.file
Class GenericAttribute
- java.lang.Object
-
- EDU.purdue.cs.bloat.file.Attribute
-
- EDU.purdue.cs.bloat.file.GenericAttribute
-
public class GenericAttribute extends Attribute
The Java Virtual Machine Specification allows implementors to invent their own attributes. GenericAttribute models attributes whose name BLOAT does not recognize.
-
-
Constructor Summary
Constructors Constructor Description GenericAttribute(java.io.DataInputStream in, int nameIndex, int length)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()voidwriteData(java.io.DataOutputStream out)Write the attribute to a data stream.
-
-
-
Constructor Detail
-
GenericAttribute
public GenericAttribute(java.io.DataInputStream in, int nameIndex, int length) throws java.io.IOExceptionConstructor. 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:
java.io.IOException- If an error occurs while reading.
-
-