Package de.inetsoftware.classparser
Class LineNumberTable
- java.lang.Object
-
- de.inetsoftware.classparser.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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLastLineNr()
Get the line number of the last code block.int
getLineNumber(int idx)
Get the line numberint
getMaxLineNr()
int
getMinLineNr()
int
getStartOffset(int idx)
Get the offset of the codeint
size()
Count of entries
-
-
-
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()
-
-