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

LocalVariableGen Class Reference

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

Public Methods

 LocalVariableGen (int index, String name, Type type, InstructionHandle start, InstructionHandle end)
boolean containsTarget (InstructionHandle ih)
boolean equals (Object o)
InstructionHandle getEnd ()
int getIndex ()
LocalVariable getLocalVariable (ConstantPoolGen cp)
String getName ()
int getSlot ()
InstructionHandle getStart ()
Type getType ()
void setEnd (InstructionHandle end)
void setIndex (int index)
void setName (String name)
void setSlot (int index)
void setStart (InstructionHandle start)
void setType (Type type)
String toString ()
void updateTarget (InstructionHandle old_ih, InstructionHandle new_ih)
 LocalVariableGen (int index, String name, Type type, InstructionHandle start, InstructionHandle end)
Object clone ()
boolean containsTarget (InstructionHandle ih)
boolean equals (Object o)
InstructionHandle getEnd ()
int getIndex ()
LocalVariable getLocalVariable (ConstantPoolGen cp)
String getName ()
int getSlot ()
InstructionHandle getStart ()
Type getType ()
void setEnd (InstructionHandle end)
void setIndex (int index)
void setName (String name)
void setSlot (int index)
void setStart (InstructionHandle start)
void setType (Type type)
String toString ()
void updateTarget (InstructionHandle old_ih, InstructionHandle new_ih)

Private Attributes

int index
String name
Type type
InstructionHandle start
InstructionHandle end

Detailed Description

This class represents a local variable within a method. It contains its scope, name and type. The generated LocalVariable object can be obtained with getLocalVariable which needs the instruction list and the constant pool as parameters.

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

Definition at line 17 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.


Constructor & Destructor Documentation

LocalVariableGen::LocalVariableGen int   index,
String   name,
Type   type,
InstructionHandle   start,
InstructionHandle   end
[inline]
 

Generate a local variable that with index `index'. Note that double and long variables need two indexs. Index indices have to be provided by the user.

Parameters:
index   index of local variable
name   its name
type   its type
start   from where the instruction is valid (null means from the start)
end   until where the instruction is valid (null means to the end)

Definition at line 33 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.

LocalVariableGen::LocalVariableGen int   index,
String   name,
Type   type,
InstructionHandle   start,
InstructionHandle   end
[inline]
 

Generate a local variable that with index `index'. Note that double and long variables need two indexs. Index indices have to be provided by the user.

Parameters:
index   index of local variable
name   its name
type   its type
start   from where the instruction is valid (null means from the start)
end   until where the instruction is valid (null means to the end)

Definition at line 33 of file src/de/fub/bytecode/generic/LocalVariableGen.java.


Member Function Documentation

boolean LocalVariableGen::containsTarget InstructionHandle   ih [inline]
 

Returns:
true, if ih is target of this variable

Reimplemented from InstructionTargeter.

Definition at line 55 of file src/de/fub/bytecode/generic/LocalVariableGen.java.

boolean LocalVariableGen::containsTarget InstructionHandle   ih [inline]
 

Returns:
true, if ih is target of this variable

Reimplemented from InstructionTargeter.

Definition at line 47 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.

boolean LocalVariableGen::equals Object   o [inline]
 

We consider to local variables to be equal, if the use the same index and are valid in the same range.

Definition at line 62 of file src/de/fub/bytecode/generic/LocalVariableGen.java.

boolean LocalVariableGen::equals Object   o [inline]
 

We consider to local variables to be equal, if the use the same index and are valid in the same range.

Definition at line 54 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.

LocalVariable LocalVariableGen::getLocalVariable ConstantPoolGen   cp [inline]
 

Get LocalVariable object.

This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods has been called for the instruction list.

Parameters:
il   instruction list (byte code) which this variable belongs to
cp   constant pool

Definition at line 80 of file src/de/fub/bytecode/generic/LocalVariableGen.java.

LocalVariable LocalVariableGen::getLocalVariable ConstantPoolGen   cp [inline]
 

Get LocalVariable object.

This relies on that the instruction list has already been dumped to byte code or or that the `setPositions' methods has been called for the instruction list.

Parameters:
il   instruction list (byte code) which this variable belongs to
cp   constant pool

Definition at line 72 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.

int LocalVariableGen::getSlot   [inline]
 

Deprecated:
Use getIndex()

Definition at line 92 of file src/de/fub/bytecode/generic/LocalVariableGen.java.

int LocalVariableGen::getSlot   [inline]
 

Deprecated:

Definition at line 84 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.

void LocalVariableGen::setSlot int   index [inline]
 

Deprecated:
Use setIndex()

Definition at line 103 of file src/de/fub/bytecode/generic/LocalVariableGen.java.

void LocalVariableGen::setSlot int   index [inline]
 

Deprecated:

Definition at line 95 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.

void LocalVariableGen::updateTarget InstructionHandle   old_ih,
InstructionHandle   new_ih
[inline]
 

Parameters:
old_ih   old target, either start or end
new_ih   new target

Reimplemented from InstructionTargeter.

Definition at line 116 of file src/de/fub/bytecode/generic/LocalVariableGen.java.

void LocalVariableGen::updateTarget InstructionHandle   old_ih,
InstructionHandle   new_ih
[inline]
 

Parameters:
old_ih   old target, either start or end
new_ih   new target

Reimplemented from InstructionTargeter.

Definition at line 108 of file lib/jpf/de/fub/bytecode/generic/LocalVariableGen.java.


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