public class LineNumberTable extends Attribute
Code,
LineNumberDebugInfo| Constructor and Description |
|---|
LineNumberTable(java.io.DataInputStream in,
int nameIndex,
int length)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
length()
Get the length of the attribute.
|
LineNumberDebugInfo[] |
lineNumbers()
Get the line number debug info for the code.
|
void |
setLineNumbers(LineNumberDebugInfo[] lineNumbers)
Set the line number debug info for the code.
|
java.lang.String |
toString()
Returns a string representation of the attribute.
|
void |
writeData(java.io.DataOutputStream out)
Write the attribute to a data stream.
|
public LineNumberTable(java.io.DataInputStream in,
int nameIndex,
int length)
throws java.io.IOException
in - The data stream of the class file.nameIndex - The index into the constant pool of the name of the attribute.length - The length of the attribute, excluding the header.java.io.IOException - If an error occurs while reading.public LineNumberDebugInfo[] lineNumbers()
public void setLineNumbers(LineNumberDebugInfo[] lineNumbers)
lineNumbers - The line number debug info for the code.public int length()
public java.lang.String toString()
Attributepublic void writeData(java.io.DataOutputStream out)
throws java.io.IOException