Class LineNumberTable


  • public class LineNumberTable
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] line_number  
      private int[] start_pc  
    • Constructor Summary

      Constructors 
      Constructor Description
      LineNumberTable​(java.io.DataInputStream input)
      http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.12 http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#22856
    • Field Detail

      • start_pc

        private final int[] start_pc
      • line_number

        private final int[] line_number
    • Constructor Detail

      • LineNumberTable

        LineNumberTable​(java.io.DataInputStream input)
                 throws java.io.IOException
        http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.12 http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#22856
        Parameters:
        input - the stream of the class
        Throws:
        java.io.IOException - if any i/O error occur
    • Method Detail

      • size

        public int size()
        Count of entries
        Returns:
        the count
      • getStartOffset

        public int getStartOffset​(int idx)
        Get the offset of the code
        Parameters:
        idx - the table position
        Returns:
        the code offset
      • getLineNumber

        public int getLineNumber​(int idx)
        Get the line number
        Parameters:
        idx - the table position
        Returns:
        the line number
      • getLastLineNr

        public int getLastLineNr()
        Get the line number of the last code block.
        Returns:
        the line number
      • getMinLineNr

        public int getMinLineNr()
      • getMaxLineNr

        public int getMaxLineNr()