Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

LineNumberTable Class Reference

Inheritance diagram for LineNumberTable:
[legend]
Collaboration diagram for LineNumberTable:
[legend]
List of all members.

Public Methods

 LineNumberTable (int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool)
 LineNumberTable (LineNumberTable c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final LineNumber[] getLineNumberTable ()
int getSourceLine (int pos)
final int getTableLength ()
final void setLineNumberTable (LineNumber[] line_number_table)
final String toString ()
 LineNumberTable (int name_index, int length, LineNumber[] line_number_table, ConstantPool constant_pool)
 LineNumberTable (LineNumberTable c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final LineNumber[] getLineNumberTable ()
int getSourceLine (int pos)
final int getTableLength ()
final void setLineNumberTable (LineNumber[] line_number_table)
final String toString ()

Private Methods

 LineNumberTable (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException
 LineNumberTable (int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException

Private Attributes

int line_number_table_length
LineNumber[] line_number_table
LineNumber[] line_number_table

Detailed Description

This class is derived from Attribute and represents a table of line numbers for debugging purposes. This attribute is used by the Code attribute. It contains pairs of PCs and line numbers.

Version:
Id:
LineNumberTable.java,v 1.1.1.1 2002/01/24 03:44:00 pserver Exp
Author:
M. Dahm
See also:
Code , LineNumber

Definition at line 16 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.


Constructor & Destructor Documentation

LineNumberTable::LineNumberTable int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Index of name
length   Content length in bytes
file   Input stream
Exceptions:
IOException  
Parameters:
constant_pool   Array of constants

Definition at line 41 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

LineNumberTable::LineNumberTable int   name_index,
int   length,
DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
name_index   Index of name
length   Content length in bytes
file   Input stream
Exceptions:
IOException  
Parameters:
constant_pool   Array of constants

Definition at line 41 of file src/de/fub/bytecode/classfile/LineNumberTable.java.


Member Function Documentation

void LineNumberTable::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 66 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

void LineNumberTable::accept Visitor   v [inline, virtual]
 

Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.

Parameters:
v   Visitor object

Reimplemented from Attribute.

Definition at line 66 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

Attribute LineNumberTable::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 72 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

Attribute LineNumberTable::copy ConstantPool   constant_pool [inline, virtual]
 

Returns:
deep copy of this attribute

Reimplemented from Attribute.

Definition at line 72 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

final void LineNumberTable::dump DataOutputStream   file [inline]
 

Dump line number table attribute to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 88 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

final void LineNumberTable::dump DataOutputStream   file [inline]
 

Dump line number table attribute to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Reimplemented from Attribute.

Definition at line 88 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

final LineNumber [] LineNumberTable::getLineNumberTable   [inline]
 

Returns:
Array of (pc offset, line number) pairs.

Definition at line 98 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

final LineNumber [] LineNumberTable::getLineNumberTable   [inline]
 

Returns:
Array of (pc offset, line number) pairs.

Definition at line 98 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

int LineNumberTable::getSourceLine int   pos [inline]
 

Map byte code positions to source code lines.

Parameters:
pos   byte code offset
Returns:
corresponding line in source code

Definition at line 105 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

int LineNumberTable::getSourceLine int   pos [inline]
 

Map byte code positions to source code lines.

Parameters:
pos   byte code offset
Returns:
corresponding line in source code

Definition at line 105 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

Referenced by MethodInfo::loadLineNumbers().

final void LineNumberTable::setLineNumberTable LineNumber   line_number_table[] [inline]
 

Parameters:
line_number_table.  

Definition at line 142 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

final void LineNumberTable::setLineNumberTable LineNumber   line_number_table[] [inline]
 

Parameters:
line_number_table.  

Definition at line 142 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.

final String LineNumberTable::toString   [inline]
 

Returns:
String representation.

Reimplemented from Attribute.

Definition at line 151 of file src/de/fub/bytecode/classfile/LineNumberTable.java.

final String LineNumberTable::toString   [inline]
 

Returns:
String representation.

Reimplemented from Attribute.

Definition at line 151 of file lib/jpf/de/fub/bytecode/classfile/LineNumberTable.java.


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:18:44 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001