Package gnu.bytecode

Class StackMapTableAttr


  • public class StackMapTableAttr
    extends MiscAttr
    Represents a "StackMapTable" attribute, as added in Java 6.
    • Field Detail

      • compressStackMapTable

        public static boolean compressStackMapTable
    • Constructor Detail

      • StackMapTableAttr

        public StackMapTableAttr()
      • StackMapTableAttr

        public StackMapTableAttr​(byte[] data,
                                 CodeAttr code)
        Add a new StackMapTableAttr to a CodeAttr.
    • Method Detail

      • getMethod

        public Method getMethod()
      • write

        public void write​(java.io.DataOutputStream dstr)
                   throws java.io.IOException
        Write out the contents of the Attribute. Does not write the 6-byte attribute header.
        Overrides:
        write in class MiscAttr
        Throws:
        java.io.IOException
      • emitStackMapEntry

        public void emitStackMapEntry​(Label label,
                                      CodeAttr code)
        Emit type state for the given Label. This must be called by strictly increasing position. This is handled automatically by CodeAttr.processFixups().