FileDocCategorySizeDatePackage
LineNumber_info.javaAPI DocAndroid 1.5 API2921Wed May 06 22:41:16 BST 2009com.vladium.jcd.cls.attribute

LineNumber_info

public final class LineNumber_info extends Object implements Cloneable, com.vladium.jcd.compiler.IClassFormatOutput
This 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.
author
Vlad Roubtsov, (C) 2003

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.Objectclone()
Performs a deep copy.

        try
        {    
            return super.clone ();
        }
        catch (CloneNotSupportedException e)
        {
            throw new InternalError (e.toString ());
        }        
    
public java.lang.StringtoString()

        return "line_number_info: [start_pc = " + m_start_pc + ", line_number = " + m_line_number + "]";
    
public voidwriteInClassFormat(com.vladium.jcd.lib.UDataOutputStream out)

        out.writeU2 (m_start_pc);
        out.writeU2 (m_line_number);