public final class LineNumberTable extends Attribute
Code
,
LineNumber
constant_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, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex
public LineNumberTable(LineNumberTable c)
public LineNumberTable(int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool)
public void accept(Visitor v)
public void dump(DataOutputStream file) throws IOException
dump
in class Attribute
file
- Output file streamIOException
- if an I/O Exception occurs in writeShortpublic LineNumber[] getLineNumberTable()
public void setLineNumberTable(LineNumber[] line_number_table)
line_number_table
- the line number entries for this tablepublic int getSourceLine(int pos)
pos
- byte code offsetpublic Attribute copy(ConstantPool _constant_pool)
public int getTableLength()
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.