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

MethodState.java

00001 package gov.nasa.arc.ase.jpf.jvm.examine;
00002 
00003 import gov.nasa.arc.ase.jpf.*;
00004 import gov.nasa.arc.ase.jpf.jvm.*;
00005 
00006 public class MethodState implements iMethodState {
00007 
00008   private StackFrame method; // frame for the method to be queried
00009   private DynamicArea heap;
00010 
00011   public MethodState(StackFrame sf, DynamicArea da) {
00012     method = sf;
00013     heap = da;
00014   }  
00015   public iValue getLocalValue(String variableName) {
00016     // map name onto index and return value
00017     long value = method.getLocalVariable(variableName);
00018     return State.createValue(method.getType(variableName),value,heap);
00019   }  
00020 }

Generated at Thu Feb 7 06:50:28 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001