|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.bytecode.Attribute gnu.bytecode.LineNumbersAttr
public class LineNumbersAttr
Represents the contents of a standard "LineNumberTable" attribute.
Constructor Summary | |
---|---|
LineNumbersAttr(CodeAttr code)
Add a new LineNumbersAttr to a CodeAttr. |
|
LineNumbersAttr(short[] numbers,
CodeAttr code)
|
Method Summary | |
---|---|
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. |
Methods inherited from class gnu.bytecode.Attribute |
---|
addToFrontOf, assignConstants, assignConstants, count, get, getContainer, getLengthAll, getName, getNameIndex, getNext, isSkipped, setContainer, setName, setNameIndex, setNext, setSkipped, setSkipped, writeAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineNumbersAttr(CodeAttr code)
public LineNumbersAttr(short[] numbers, CodeAttr code)
Method Detail |
---|
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()
getLength
in class Attribute
public int getLineCount()
public short[] getLineNumberTable()
public void write(java.io.DataOutputStream dstr) throws java.io.IOException
Attribute
write
in class Attribute
java.io.IOException
public void print(ClassTypeWriter dst)
print
in class Attribute
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |