All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Attribute.AttributeLineNumberTable

java.lang.Object
   |
   +----harpoon.ClassFile.Raw.Attribute.Attribute
           |
           +----harpoon.ClassFile.Raw.Attribute.AttributeLineNumberTable

public class AttributeLineNumberTable
extends Attribute
The LineNumberTable attribute is an optional variable-length attribute in the attributes table of a Code attribute. It may be used by debuggers to determine which part of the Java Virtual Machine code array corresponds to a given line number in the original Java source file. If LineNumberTable attributes are present in the attributes table of a given Code attribute, then they may appear in any order. Furthermore, multiple LineNumberTable attributes may together represent a given line of a Java source file; that is, LineNumberTable attributes need not be one-to-one with source lines.

Version:
$Id: AttributeLineNumberTable.java,v 1.9 1998/10/11 03:01:13 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
AttributeCode, Attribute

Variable Index

 o line_number_table
Each entry in the line_number_table array indicates that the line number in the original Java source file changes at a given point in the code array.

Constructor Index

 o AttributeLineNumberTable(ClassFile, int, LineNumberTable[])
Constructor.

Method Index

 o attribute_length()
The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.
 o line_number_table_length()
 o print(PrintWriter, int)
Pretty-print this attribute.
 o write(ClassDataOutputStream)
Write to bytecode stream.

Variables

 o line_number_table
 public LineNumberTable line_number_table[]
Each entry in the line_number_table array indicates that the line number in the original Java source file changes at a given point in the code array.

Constructors

 o AttributeLineNumberTable
 public AttributeLineNumberTable(ClassFile parent,
                                 int attribute_name_index,
                                 LineNumberTable line_number_table[])
Constructor.

Methods

 o attribute_length
 public long attribute_length()
The value of the attribute_length item indicates the length of the attribute, excluding the initial six bytes.

Overrides:
attribute_length in class Attribute
 o line_number_table_length
 public int line_number_table_length()
 o write
 public void write(ClassDataOutputStream out) throws IOException
Write to bytecode stream.

Overrides:
write in class Attribute
 o print
 public void print(PrintWriter pw,
                   int indent)
Pretty-print this attribute.

Parameters:
indent - the indentation level to use.
Overrides:
print in class Attribute

All Packages  Class Hierarchy  This Package  Previous  Next  Index