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 Details

    • GenericAttribute

      public GenericAttribute(DataInputStream in, int nameIndex, int length) throws IOException
      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