public class LineNumbersAttr extends Attribute
Constructor and Description |
---|
LineNumbersAttr(CodeAttr code)
Add a new LineNumbersAttr to a CodeAttr.
|
LineNumbersAttr(short[] numbers,
CodeAttr code) |
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Get the number of line number entries.
|
int |
getLineCount() |
short[] |
getLineNumberTable() |
void |
print(ClassTypeWriter dst) |
void |
put(int linenumber,
int PC)
Add a new line number entry.
|
void |
write(java.io.DataOutputStream dstr)
Write out the contents of the Attribute.
|
addToFrontOf, assignConstants, assignConstants, count, get, getConstants, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAll
public LineNumbersAttr(CodeAttr code)
public LineNumbersAttr(short[] numbers, CodeAttr code)
public void put(int linenumber, int PC)
linenumber
- the number in the source file for this entryPC
- the byte code location for the code for this line number.public final int getLength()
public int getLineCount()
public short[] getLineNumberTable()
public void write(java.io.DataOutputStream dstr) throws java.io.IOException
Attribute
public void print(ClassTypeWriter dst)