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;
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
00017 long value = method.getLocalVariable(variableName);
00018 return State.createValue(method.getType(variableName),value,heap);
00019 }
00020 }