Package gnu.bytecode

Class MiscAttr

Direct Known Subclasses:
StackMapTableAttr

public class MiscAttr extends Attribute
  • Constructor Details

    • MiscAttr

      public MiscAttr(String name, byte[] data, int offset, int length)
    • MiscAttr

      public MiscAttr(String name, byte[] data)
  • Method Details

    • getLength

      public int getLength()
      Return the length of the attribute in bytes. Does not include the 6-byte header (for the name_index and the length).
      Specified by:
      getLength in class Attribute
    • u1

      protected int u1(int offset)
    • u2

      protected int u2(int offset)
    • u1

      protected int u1()
    • u2

      protected int u2()
    • put1

      protected void put1(int val)
    • put2

      protected void put2(int val)
    • put2

      protected void put2(int offset, int val)
    • write

      public void write(DataOutputStream dstr) throws IOException
      Write out the contents of the Attribute. Does not write the 6-byte attribute header.
      Specified by:
      write in class Attribute
      Throws:
      IOException
    • print

      public void print(ClassTypeWriter dst)
      Overrides:
      print in class Attribute