Class StackMapTableAttribute

  • All Implemented Interfaces:
    WritableEntry

    public class StackMapTableAttribute
    extends Attribute
    A JDK 6 StackMap sttribute. TODO: this will currently fall over if the code length, max locals or max stack is above 65535
    • Field Detail

      • FULL_FRAME

        private static int FULL_FRAME
      • SAME_FRAME_EXTENDED

        private static int SAME_FRAME_EXTENDED
    • Constructor Detail

      • StackMapTableAttribute

        public StackMapTableAttribute​(ClassMethod classMethod,
                                      ConstPool constPool)
    • Method Detail

      • writeSameLocals1Stack

        private void writeSameLocals1Stack​(java.io.DataOutputStream dstream,
                                           int offset,
                                           int lastPos,
                                           StackFrame frame)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeSameFrame

        private void writeSameFrame​(java.io.DataOutputStream dstream,
                                    int offset,
                                    int lastPos,
                                    StackFrame frame)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • writeFullFrame

        private void writeFullFrame​(java.io.DataOutputStream dstream,
                                    int offset,
                                    int position,
                                    StackFrame value)
                             throws java.io.IOException
        writes a full_frame to the stack map table
        Throws:
        java.io.IOException