com.vladium.jcd.cls.attribute
Class LineNumber_info

java.lang.Object
  extended bycom.vladium.jcd.cls.attribute.LineNumber_info
All Implemented Interfaces:
java.lang.Cloneable, IClassFormatOutput

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

Field Summary
 int m_line_number
           
 int m_start_pc
           
 
Constructor Summary
  LineNumber_info(int start_pc, int line_number)
           
(package private) LineNumber_info(UDataInputStream bytes)
           
 
Method Summary
 java.lang.Object clone()
          Performs a deep copy.
 java.lang.String toString()
           
 void writeInClassFormat(UDataOutputStream out)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_start_pc

public int m_start_pc

m_line_number

public int m_line_number
Constructor Detail

LineNumber_info

public LineNumber_info(int start_pc,
                       int line_number)

LineNumber_info

LineNumber_info(UDataInputStream bytes)
          throws java.io.IOException
Method Detail

toString

public java.lang.String toString()

clone

public java.lang.Object clone()
Performs a deep copy.


writeInClassFormat

public void writeInClassFormat(UDataOutputStream out)
                        throws java.io.IOException
Specified by:
writeInClassFormat in interface IClassFormatOutput
Throws:
java.io.IOException