Package de.inetsoftware.classparser
Class LineNumberTable
java.lang.Object
de.inetsoftware.classparser.LineNumberTable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLineNumberTable
(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
Modifier and TypeMethodDescriptionint
Get the line number of the last code block.int
getLineNumber
(int idx) Get the line numberint
int
int
getStartOffset
(int idx) Get the offset of the codeint
size()
Count of entries
-
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()
-