com.vladium.jcd.cls.attribute
Class LineNumber_info
java.lang.Object
com.vladium.jcd.cls.attribute.LineNumber_info
- All Implemented Interfaces:
- IClassFormatOutput, java.lang.Cloneable
public final class LineNumber_info
- extends java.lang.Object
- implements java.lang.Cloneable, IClassFormatOutput
This class represents a line_number_table entry contained by
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 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.
- Author:
- Vlad Roubtsov, (C) 2003
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_start_pc
public int m_start_pc
m_line_number
public int m_line_number
LineNumber_info
public LineNumber_info(int start_pc,
int line_number)
LineNumber_info
LineNumber_info(UDataInputStream bytes)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Performs a deep copy.
- Overrides:
clone
in class java.lang.Object
writeInClassFormat
public void writeInClassFormat(UDataOutputStream out)
throws java.io.IOException
- Specified by:
writeInClassFormat
in interface IClassFormatOutput
- Throws:
java.io.IOException