Class StackMapFrame

    • Constructor Detail

      • StackMapFrame

        public StackMapFrame​(int frameType)
        Constructs a StackMapFrame with the specified frame type.
        Parameters:
        frameType - the frame type identifier
    • Method Detail

      • getFrameType

        public int getFrameType()
        Returns:
        the frame type
      • readFrame

        public static StackMapFrame readFrame​(ClassFile classFile,
                                              ConstPool constPool)
        Reads a stack map frame from the class file.
        Parameters:
        classFile - the class file to read from
        constPool - the constant pool for resolving references
        Returns:
        the parsed StackMapFrame
      • write

        public final void write​(DataOutputStream dos)
                         throws IOException
        Writes this stack map frame to the output stream.
        Parameters:
        dos - the output stream to write to
        Throws:
        IOException - if an I/O error occurs
      • getLength

        public abstract int getLength()
        Returns the total length of this frame in bytes.
        Returns:
        the length in bytes
      • getOffsetDelta

        public abstract int getOffsetDelta()
        Returns:
        the bytecode offset delta from the previous frame