org.apache.tomcat.util.bcel.classfile
Class LineNumber
java.lang.Object
org.apache.tomcat.util.bcel.classfile.LineNumber
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public final class LineNumber
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
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 1057670 2011-01-11 14:52:05Z markt $
- Author:
- M. Dahm
- See Also:
LineNumberTable
,
Serialized Form
Constructor Summary |
LineNumber(int start_pc,
int line_number)
|
Method Summary |
LineNumber |
copy()
|
void |
dump(java.io.DataOutputStream file)
Dump line number/pc pair to file stream in binary format. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LineNumber
public LineNumber(int start_pc,
int line_number)
- Parameters:
start_pc
- Program Counter (PC) corresponds toline_number
- line number in source file
dump
public final void dump(java.io.DataOutputStream file)
throws java.io.IOException
- Dump line number/pc pair to file stream in binary format.
- Parameters:
file
- Output file stream
- Throws:
java.io.IOException
toString
public final java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation
copy
public LineNumber copy()
- Returns:
- deep copy of this object
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.