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

LineNumber Class Reference

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

Public Methods

 LineNumber (int start_pc, int line_number)
 LineNumber (LineNumber c)
void accept (Visitor v)
LineNumber copy ()
final void dump (DataOutputStream file) throws IOException
final int getLineNumber ()
final int getStartPC ()
final void setLineNumber (int line_number)
final void setStartPC (int start_pc)
final String toString ()
 LineNumber (int start_pc, int line_number)
 LineNumber (LineNumber c)
void accept (Visitor v)
LineNumber copy ()
final void dump (DataOutputStream file) throws IOException
final int getLineNumber ()
final int getStartPC ()
final void setLineNumber (int line_number)
final void setStartPC (int start_pc)
final String toString ()

Private Methods

 LineNumber (DataInputStream file) throws IOException
 LineNumber (DataInputStream file) throws IOException

Private Attributes

int start_pc
int line_number

Detailed Description

This class represents a (PC offset, line number) pair, i.e. a line number in the source that corresponds to a relative address in the byte code. This is used for debugging purposes.

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

Definition at line 15 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.


Constructor & Destructor Documentation

LineNumber::LineNumber int   start_pc,
int   line_number
[inline]
 

Parameters:
start_pc   Program Counter (PC) corresponds to
line_number   line number in source file

Definition at line 23 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

LineNumber::LineNumber LineNumber   c [inline]
 

Initialize from another object.

Definition at line 31 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

LineNumber::LineNumber DataInputStream   file [inline, private]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 39 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

LineNumber::LineNumber int   start_pc,
int   line_number
[inline]
 

Parameters:
start_pc   Program Counter (PC) corresponds to
line_number   line number in source file

Definition at line 23 of file src/de/fub/bytecode/classfile/LineNumber.java.

LineNumber::LineNumber LineNumber   c [inline]
 

Initialize from another object.

Definition at line 31 of file src/de/fub/bytecode/classfile/LineNumber.java.

LineNumber::LineNumber DataInputStream   file [inline, private]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 39 of file src/de/fub/bytecode/classfile/LineNumber.java.


Member Function Documentation

void LineNumber::accept Visitor   v [inline]
 

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

Definition at line 50 of file src/de/fub/bytecode/classfile/LineNumber.java.

void LineNumber::accept Visitor   v [inline]
 

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

Definition at line 50 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

LineNumber LineNumber::copy   [inline]
 

Returns:
deep copy of this object

Definition at line 56 of file src/de/fub/bytecode/classfile/LineNumber.java.

LineNumber LineNumber::copy   [inline]
 

Returns:
deep copy of this object

Definition at line 56 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

Referenced by LineNumberTable::copy().

final void LineNumber::dump DataOutputStream   file [inline]
 

Dump line number/pc pair to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Definition at line 69 of file src/de/fub/bytecode/classfile/LineNumber.java.

final void LineNumber::dump DataOutputStream   file [inline]
 

Dump line number/pc pair to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Definition at line 69 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

Referenced by LineNumberTable::dump().

final int LineNumber::getLineNumber   [inline]
 

Returns:
Corresponding source line

Definition at line 77 of file src/de/fub/bytecode/classfile/LineNumber.java.

final int LineNumber::getLineNumber   [inline]
 

Returns:
Corresponding source line

Definition at line 77 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

Referenced by LineNumber(), MethodGen::MethodGen(), and LineNumberTable::getSourceLine().

final int LineNumber::getStartPC   [inline]
 

Returns:
PC in code

Definition at line 81 of file src/de/fub/bytecode/classfile/LineNumber.java.

final int LineNumber::getStartPC   [inline]
 

Returns:
PC in code

Definition at line 81 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

Referenced by LineNumber(), MethodGen::MethodGen(), and LineNumberTable::getSourceLine().

final void LineNumber::setLineNumber int   line_number [inline]
 

Parameters:
line_number.  

Definition at line 85 of file src/de/fub/bytecode/classfile/LineNumber.java.

final void LineNumber::setLineNumber int   line_number [inline]
 

Parameters:
line_number.  

Definition at line 85 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

final void LineNumber::setStartPC int   start_pc [inline]
 

Parameters:
start_pc.  

Definition at line 91 of file src/de/fub/bytecode/classfile/LineNumber.java.

final void LineNumber::setStartPC int   start_pc [inline]
 

Parameters:
start_pc.  

Definition at line 91 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.

final String LineNumber::toString   [inline]
 

Returns:
String representation

Definition at line 97 of file src/de/fub/bytecode/classfile/LineNumber.java.

final String LineNumber::toString   [inline]
 

Returns:
String representation

Definition at line 97 of file lib/jpf/de/fub/bytecode/classfile/LineNumber.java.


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