gnu.bytecode
Class LineNumbersAttr
public class LineNumbersAttr
Represents the contents of a standard "LineNumberTable" attribute.
addToFrontOf , assignConstants , assignConstants , count , get , getContainer , getLength , getLengthAll , getName , getNameIndex , getNext , isSkipped , print , setContainer , setName , setNameIndex , setNext , setSkipped , setSkipped , write , writeAll |
LineNumbersAttr
public LineNumbersAttr(CodeAttr code)
Add a new LineNumbersAttr to a CodeAttr.
LineNumbersAttr
public LineNumbersAttr(short[] numbers,
CodeAttr code)
getLength
public final int getLength()
Get the number of line number entries.
- getLength in interface Attribute
getLineCount
public int getLineCount()
getLineNumberTable
public short[] getLineNumberTable()
put
public void put(int linenumber,
int PC)
Add a new line number entry.
linenumber
- the number in the source file for this entryPC
- the byte code location for the code for this line number.
write
public void write(DataOutputStream dstr)
throws java.io.IOException
- write in interface Attribute