public final class LineNumberTable extends Attribute
Code,
LineNumber,
Serialized Formconstant_pool, length, name_index, tag| Constructor and Description |
|---|
LineNumberTable(int name_index,
int length,
LineNumber[] line_number_table,
ConstantPool constant_pool) |
LineNumberTable(LineNumberTable c) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool constant_pool) |
void |
dump(DataOutputStream file)
Dump line number table attribute to file stream in binary format.
|
LineNumber[] |
getLineNumberTable() |
int |
getSourceLine(int pos)
Map byte code positions to source code lines.
|
int |
getTableLength() |
void |
setLineNumberTable(LineNumber[] line_number_table) |
String |
toString() |
addAttributeReader, clone, getConstantPool, getLength, getNameIndex, getTag, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndexpublic LineNumberTable(LineNumberTable c)
public LineNumberTable(int name_index,
int length,
LineNumber[] line_number_table,
ConstantPool constant_pool)
public void accept(Visitor v)
public final void dump(DataOutputStream file) throws IOException
dump in class Attributefile - Output file streamIOExceptionpublic final LineNumber[] getLineNumberTable()
public final void setLineNumberTable(LineNumber[] line_number_table)
line_number_table. - public final String toString()
public int getSourceLine(int pos)
pos - byte code offsetpublic Attribute copy(ConstantPool constant_pool)
public final int getTableLength()
Copyright © 2018–2021 mhoffrogge. All rights reserved.