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

LocalVariableTable Class Reference

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

Public Methods

 LocalVariableTable (int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)
 LocalVariableTable (LocalVariableTable c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final LocalVariable[] getLocalVariableTable ()
final int getTableLength ()
final void setLocalVariableTable (LocalVariable[] local_variable_table)
final String toString ()
 LocalVariableTable (int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)
 LocalVariableTable (LocalVariableTable c)
void accept (Visitor v)
Attribute copy (ConstantPool constant_pool)
final void dump (DataOutputStream file) throws IOException
final LocalVariable[] getLocalVariableTable ()
final int getTableLength ()
final void setLocalVariableTable (LocalVariable[] local_variable_table)
final String toString ()

Private Methods

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

Private Attributes

int local_variable_table_length
LocalVariable[] local_variable_table
LocalVariable[] local_variable_table

Detailed Description

This class is derived from Attribute and represents colection of local variables in a method. This attribute is used by the Code attribute.

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

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


Constructor & Destructor Documentation

LocalVariableTable::LocalVariableTable int   name_index,
int   length,
LocalVariable   local_variable_table[],
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Index in constant pool to `LocalVariableTable'
length   Content length in bytes
local_variable_table   Table of local variables
constant_pool   Array of constants

Definition at line 25 of file lib/jpf/de/fub/bytecode/classfile/LocalVariableTable.java.

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

Construct object from file stream.

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

Definition at line 40 of file lib/jpf/de/fub/bytecode/classfile/LocalVariableTable.java.

LocalVariableTable::LocalVariableTable LocalVariableTable   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 55 of file lib/jpf/de/fub/bytecode/classfile/LocalVariableTable.java.

LocalVariableTable::LocalVariableTable int   name_index,
int   length,
LocalVariable   local_variable_table[],
ConstantPool   constant_pool
[inline]
 

Parameters:
name_index   Index in constant pool to `LocalVariableTable'
length   Content length in bytes
local_variable_table   Table of local variables
constant_pool   Array of constants

Definition at line 25 of file src/de/fub/bytecode/classfile/LocalVariableTable.java.

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

Construct object from file stream.

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

Definition at line 40 of file src/de/fub/bytecode/classfile/LocalVariableTable.java.

LocalVariableTable::LocalVariableTable LocalVariableTable   c [inline]
 

Initialize from another object. Note that both objects use the same references (shallow copy). Use clone() for a physical copy.

Definition at line 55 of file src/de/fub/bytecode/classfile/LocalVariableTable.java.


Member Function Documentation

void LocalVariableTable::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/LocalVariableTable.java.

void LocalVariableTable::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/LocalVariableTable.java.

Attribute LocalVariableTable::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/LocalVariableTable.java.

Attribute LocalVariableTable::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/LocalVariableTable.java.

final void LocalVariableTable::dump DataOutputStream   file [inline]
 

Dump local variable 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/LocalVariableTable.java.

final void LocalVariableTable::dump DataOutputStream   file [inline]
 

Dump local variable 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/LocalVariableTable.java.

final LocalVariable [] LocalVariableTable::getLocalVariableTable   [inline]
 

Returns:
Array of local variables of method.

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

final LocalVariable [] LocalVariableTable::getLocalVariableTable   [inline]
 

Returns:
Array of local variables of method.

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

Referenced by LocalVariableTable(), MethodInfo::loadLocalVariableNames(), and MethodInfo::loadLocalVariableTypes().

final String LocalVariableTable::toString   [inline]
 

Returns:
String representation.

Reimplemented from Attribute.

Definition at line 111 of file src/de/fub/bytecode/classfile/LocalVariableTable.java.

final String LocalVariableTable::toString   [inline]
 

Returns:
String representation.

Reimplemented from Attribute.

Definition at line 111 of file lib/jpf/de/fub/bytecode/classfile/LocalVariableTable.java.


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