All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.ClassFile.Raw.Attribute.LocalVariableTable

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

public class LocalVariableTable
extends Object
Each object indicates a range of code array offsets within which a local variable has a value.

Version:
$Id: LocalVariableTable.java,v 1.3 1998/10/11 03:01:14 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
AttributeLocalVariableTable

Variable Index

 o descriptor_index
The value of the descriptor_index item must be a valid index into the constant_pool table.
 o index
The given local variable must be at index in its method's local variables.
 o length
The given local variable must have a value at indices into the code array in the closed interval [start_pc, start_pc + length].
 o name_index
The value of the name_index item must be a valid index into the constant_pool table.
 o parent
ClassFile in which this attribute information is found.
 o start_pc
The given local variable must have a value at indices into the code array in the closed interval [start_pc, start_pc + length].

Constructor Index

 o LocalVariableTable(ClassFile, int, int, int, int, int)
Constructor.

Method Index

 o descriptor()
 o descriptor_index()
 o end_pc()
 o name()
 o name_index()
 o print(PrintWriter, int)
Pretty-print the contents of this attribute.
 o write(ClassDataOutputStream)
Writes to bytecode stream.

Variables

 o parent
 protected ClassFile parent
ClassFile in which this attribute information is found.

 o start_pc
 public int start_pc
The given local variable must have a value at indices into the code array in the closed interval [start_pc, start_pc + length].

The value of start_pc must be a valid index into the code array of this Code attribute of the opcode of an instruction.

 o length
 public int length
The given local variable must have a value at indices into the code array in the closed interval [start_pc, start_pc + length].

The value of start_pc+length must be either a valid index into the code array of this Code attribute of the opcode of an instruction, or the first index beyond the end of that code array.

 o name_index
 public int name_index
The value of the name_index item must be a valid index into the constant_pool table. The constant_pool entry at that index must contain a CONSTANT_Utf8_info structure representing a valid Java local variable name stored as a simple name.

 o descriptor_index
 public int descriptor_index
The value of the descriptor_index item must be a valid index into the constant_pool table. The constant_pool entry at that index must contain a CONSTANT_Utf8_info structure representing a valid descriptor for a Java local variable. Java local variable descriptors have the same form as field descriptors.

 o index
 public int index
The given local variable must be at index in its method's local variables. If the local variable at index is a two-word type (double or long), it occupies both index and index+1.

Constructors

 o LocalVariableTable
 public LocalVariableTable(ClassFile parent,
                           int start_pc,
                           int length,
                           int name_index,
                           int descriptor_index,
                           int index)
Constructor.

Methods

 o write
 public void write(ClassDataOutputStream out) throws IOException
Writes to bytecode stream.

 o name_index
 public ConstantUtf8 name_index()
 o descriptor_index
 public ConstantUtf8 descriptor_index()
 o name
 public String name()
 o descriptor
 public String descriptor()
 o end_pc
 public int end_pc()
 o print
 public void print(PrintWriter pw,
                   int indent)
Pretty-print the contents of this attribute.

Parameters:
indent - the indentation level to use.

All Packages  Class Hierarchy  This Package  Previous  Next  Index