Class LineNumberTable

java.lang.Object
de.inetsoftware.classparser.LineNumberTable

public class LineNumberTable extends Object
  • Field Details

    • start_pc

      private final int[] start_pc
    • line_number

      private final int[] line_number
  • Constructor Details

    • LineNumberTable

      LineNumberTable(DataInputStream input) throws 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:
      IOException - if any i/O error occur
  • Method Details

    • 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()