|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.interpreter.LocalVariable
public class LocalVariable
Each frame (�3.6) contains an array of variables known as its local variables. The length of the local variable array of a frame is determined at compile time and supplied in the binary representation of a class or interface along with the code for the method associated with the frame (�4.7.3). A single local variable can hold a value of type boolean, byte, char, short, int, float, reference, or returnAddress. A pair of local variables can hold a value of type long or double.
Local variables are addressed by indexing. The index of the first local variable is zero. An integer is be considered to be an index into the local variable array if and only if that integer is between zero and one less than the size of the local variable array.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Constructor Summary | |
---|---|
LocalVariable(LocalVariableDescriptor localVariableDescriptor)
constructs a new LocalVariable |
Method Summary | |
---|---|
Object |
clone()
|
LocalVariableDescriptor |
getLocalVariableDescriptor()
|
Object |
getValue()
|
static LocalVariable[] |
newInstance(LocalVariableDescriptor[] descriptors)
creates a new array of local variables |
static void |
replace(LocalVariable[] localVariables,
Object oldValue,
Object newValue)
replaces the value of a localVarialbe |
void |
setValue(Object value)
|
String |
toString()
|
static String |
toString(LocalVariable[] localVariables)
parses the localVariables to string |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalVariable(LocalVariableDescriptor localVariableDescriptor)
localVariableDescriptor
- the descriptorMethod Detail |
---|
public LocalVariableDescriptor getLocalVariableDescriptor()
public Object getValue()
public void setValue(Object value)
value
- The value to set.public String toString()
toString
in class Object
Object.toString()
public static LocalVariable[] newInstance(LocalVariableDescriptor[] descriptors)
descriptors
- the descriptors
public static void replace(LocalVariable[] localVariables, Object oldValue, Object newValue)
localVariables
- the set to introspectoldValue
- the oldValuenewValue
- the new valuepublic static String toString(LocalVariable[] localVariables)
localVariables
- the localVariables
public Object clone()
clone
in class Object
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |