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

LocalVariable Class Reference

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

Public Methods

 LocalVariable (int start_pc, int length, int name_index, int signature_index, int index, ConstantPool constant_pool)
 LocalVariable (LocalVariable c)
void accept (Visitor v)
LocalVariable copy ()
final void dump (DataOutputStream file) throws IOException
final ConstantPool getConstantPool ()
final int getIndex ()
final int getLength ()
final String getName ()
final int getNameIndex ()
final String getSignature ()
final int getSignatureIndex ()
final int getStartPC ()
final void setConstantPool (ConstantPool constant_pool)
final void setIndex (int index)
final void setLength (int length)
final void setNameIndex (int name_index)
final void setSignatureIndex (int signature_index)
final void setStartPC (int start_pc)
final String toString ()
 LocalVariable (int start_pc, int length, int name_index, int signature_index, int index, ConstantPool constant_pool)
 LocalVariable (LocalVariable c)
void accept (Visitor v)
LocalVariable copy ()
final void dump (DataOutputStream file) throws IOException
final ConstantPool getConstantPool ()
final int getIndex ()
final int getLength ()
final String getName ()
final int getNameIndex ()
final String getSignature ()
final int getSignatureIndex ()
final int getStartPC ()
final void setConstantPool (ConstantPool constant_pool)
final void setIndex (int index)
final void setLength (int length)
final void setNameIndex (int name_index)
final void setSignatureIndex (int signature_index)
final void setStartPC (int start_pc)
final String toString ()

Private Methods

 LocalVariable (DataInputStream file, ConstantPool constant_pool) throws IOException
 LocalVariable (DataInputStream file, ConstantPool constant_pool) throws IOException

Private Attributes

int start_pc
int length
int name_index
int signature_index
int index
ConstantPool constant_pool

Detailed Description

This class represents a local variable within a method. It contains its scope, name, signature and index on the method's frame.

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

Definition at line 14 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.


Constructor & Destructor Documentation

LocalVariable::LocalVariable int   start_pc,
int   length,
int   name_index,
int   signature_index,
int   index,
ConstantPool   constant_pool
[inline]
 

Parameters:
start_pc   Range in which the variable
length   ... is valid
name_index   Index in constant pool of variable name
signature_index   Index of variable's signature
index   Variable is `index'th local variable on the method's frame
constant_pool   Array of constants

Definition at line 33 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

LocalVariable::LocalVariable LocalVariable   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 48 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

LocalVariable::LocalVariable DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 57 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

LocalVariable::LocalVariable int   start_pc,
int   length,
int   name_index,
int   signature_index,
int   index,
ConstantPool   constant_pool
[inline]
 

Parameters:
start_pc   Range in which the variable
length   ... is valid
name_index   Index in constant pool of variable name
signature_index   Index of variable's signature
index   Variable is `index'th local variable on the method's frame
constant_pool   Array of constants

Definition at line 33 of file src/de/fub/bytecode/classfile/LocalVariable.java.

LocalVariable::LocalVariable LocalVariable   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 48 of file src/de/fub/bytecode/classfile/LocalVariable.java.

LocalVariable::LocalVariable DataInputStream   file,
ConstantPool   constant_pool
[inline, private]
 

Construct object from file stream.

Parameters:
file   Input stream
Exceptions:
IOException  

Definition at line 57 of file src/de/fub/bytecode/classfile/LocalVariable.java.


Member Function Documentation

void LocalVariable::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 71 of file src/de/fub/bytecode/classfile/LocalVariable.java.

void LocalVariable::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 71 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

LocalVariable LocalVariable::copy   [inline]
 

Returns:
deep copy of this object

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

LocalVariable LocalVariable::copy   [inline]
 

Returns:
deep copy of this object

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

Referenced by LocalVariableTable::copy().

final void LocalVariable::dump DataOutputStream   file [inline]
 

Dump local variable to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Definition at line 90 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::dump DataOutputStream   file [inline]
 

Dump local variable to file stream in binary format.

Parameters:
file   Output file stream
Exceptions:
IOException  

Definition at line 90 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariableTable::dump().

final ConstantPool LocalVariable::getConstantPool   [inline]
 

Returns:
Constant pool used by this object.
See also:
ConstantPool

Definition at line 102 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final ConstantPool LocalVariable::getConstantPool   [inline]
 

Returns:
Constant pool used by this object.
See also:
ConstantPool

Definition at line 102 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariable().

final int LocalVariable::getIndex   [inline]
 

Returns:
Variable is `getIndex()'th local variable on this method's frame.

Definition at line 106 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final int LocalVariable::getIndex   [inline]
 

Returns:
Variable is `getIndex()'th local variable on this method's frame.

Definition at line 106 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariable(), and MethodGen::MethodGen().

final int LocalVariable::getLength   [inline]
 

Returns:
Variable is valid within getStartPC() .. getStartPC()+getLength()

Definition at line 110 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final int LocalVariable::getLength   [inline]
 

Returns:
Variable is valid within getStartPC() .. getStartPC()+getLength()

Definition at line 110 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariable(), and MethodGen::MethodGen().

final String LocalVariable::getName   [inline]
 

Returns:
Variable name.

Definition at line 114 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final String LocalVariable::getName   [inline]
 

Returns:
Variable name.

Definition at line 114 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by MethodGen::MethodGen().

final int LocalVariable::getNameIndex   [inline]
 

Returns:
Index in constant pool of variable name.

Definition at line 123 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final int LocalVariable::getNameIndex   [inline]
 

Returns:
Index in constant pool of variable name.

Definition at line 123 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariable().

final String LocalVariable::getSignature   [inline]
 

Returns:
Signature.

Definition at line 127 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final String LocalVariable::getSignature   [inline]
 

Returns:
Signature.

Definition at line 127 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by MethodGen::MethodGen().

final int LocalVariable::getSignatureIndex   [inline]
 

Returns:
Index in constant pool of variable signature.

Definition at line 136 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final int LocalVariable::getSignatureIndex   [inline]
 

Returns:
Index in constant pool of variable signature.

Definition at line 136 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariable().

final int LocalVariable::getStartPC   [inline]
 

Returns:
Start of range where he variable is valid

Definition at line 140 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final int LocalVariable::getStartPC   [inline]
 

Returns:
Start of range where he variable is valid

Definition at line 140 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

Referenced by LocalVariable(), and MethodGen::MethodGen().

final void LocalVariable::setConstantPool ConstantPool   constant_pool [inline]
 

Parameters:
constant_pool   Constant pool to be used for this object.
See also:
ConstantPool

Definition at line 145 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setConstantPool ConstantPool   constant_pool [inline]
 

Parameters:
constant_pool   Constant pool to be used for this object.
See also:
ConstantPool

Definition at line 145 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setIndex int   index [inline]
 

Parameters:
index.  

Definition at line 151 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setIndex int   index [inline]
 

Parameters:
index.  

Definition at line 151 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setLength int   length [inline]
 

Parameters:
length.  

Definition at line 155 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setLength int   length [inline]
 

Parameters:
length.  

Definition at line 155 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setNameIndex int   name_index [inline]
 

Parameters:
name_index.  

Definition at line 161 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setNameIndex int   name_index [inline]
 

Parameters:
name_index.  

Definition at line 161 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setSignatureIndex int   signature_index [inline]
 

Parameters:
signature_index.  

Definition at line 167 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setSignatureIndex int   signature_index [inline]
 

Parameters:
signature_index.  

Definition at line 167 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setStartPC int   start_pc [inline]
 

Parameters:
start_pc   Specify range where the local variable is valid.

Definition at line 173 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final void LocalVariable::setStartPC int   start_pc [inline]
 

Parameters:
start_pc   Specify range where the local variable is valid.

Definition at line 173 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.

final String LocalVariable::toString   [inline]
 

Returns:
string representation.

Definition at line 179 of file src/de/fub/bytecode/classfile/LocalVariable.java.

final String LocalVariable::toString   [inline]
 

Returns:
string representation.

Definition at line 179 of file lib/jpf/de/fub/bytecode/classfile/LocalVariable.java.


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