All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gnu.bytecode.LineNumbersAttr

java.lang.Object
   |
   +----gnu.bytecode.Attribute
           |
           +----gnu.bytecode.LineNumbersAttr

public class LineNumbersAttr
extends Attribute
Represents the contents of a standard "LineNumberTable" attribute.

Author:
Per Bothner

Constructor Index

 o LineNumbersAttr(CodeAttr)
Add a new LineNumbersAttr to a CodeAttr.
 o LineNumbersAttr(short[], CodeAttr)

Method Index

 o getLength()
Get the number of line number entries.
 o print(ClassTypeWriter)
 o put(int, int)
Add a new line number entry.
 o write(DataOutputStream)
Write out the contents of the Attribute.

Constructors

 o LineNumbersAttr
 public LineNumbersAttr(CodeAttr code)
Add a new LineNumbersAttr to a CodeAttr.

 o LineNumbersAttr
 public LineNumbersAttr(short numbers[],
                        CodeAttr code)

Methods

 o put
 public void put(int linenumber,
                 int PC)
Add a new line number entry.

Parameters:
linenumber - the number in the source file for this entry
PC - the byte code location for the code for this line number.
 o getLength
 public final int getLength()
Get the number of line number entries.

Overrides:
getLength in class Attribute
 o write
 public void write(DataOutputStream dstr) throws IOException
Write out the contents of the Attribute.

Overrides:
write in class Attribute
 o print
 public void print(ClassTypeWriter dst)
Overrides:
print in class Attribute

All Packages  Class Hierarchy  This Package  Previous  Next  Index