LineNumber_infopublic final class LineNumber_info extends Object implements Cloneable, com.vladium.jcd.compiler.IClassFormatOutputThis class represents a line_number_table entry contained by
{@link LineNumberTableAttribute_info} attribute. Each entry contains the
following items:
start_pc
The value of the start_pc item must indicate the index into the code array
at which the code for a new line in the original source file begins. The
value of start_pc must be less than the value of the code_length item of
the {@link CodeAttribute_info} attribute of which this LineNumberTable
is an attribute.
line_number
The value of the line_number item must give the corresponding line number
in the original source file. |
Fields Summary |
---|
public int | m_start_pc | public int | m_line_number |
Constructors Summary |
---|
public LineNumber_info(int start_pc, int line_number)
m_start_pc = start_pc;
m_line_number = line_number;
| LineNumber_info(com.vladium.jcd.lib.UDataInputStream bytes)
m_start_pc = bytes.readU2 ();
m_line_number = bytes.readU2 ();
|
Methods Summary |
---|
public java.lang.Object | clone()Performs a deep copy.
try
{
return super.clone ();
}
catch (CloneNotSupportedException e)
{
throw new InternalError (e.toString ());
}
| public java.lang.String | toString()
return "line_number_info: [start_pc = " + m_start_pc + ", line_number = " + m_line_number + "]";
| public void | writeInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)
out.writeU2 (m_start_pc);
out.writeU2 (m_line_number);
|
|