00001 package gov.nasa.arc.ase.jpf.jvm.examine; 00002 00003 import gov.nasa.arc.ase.jpf.jvm.SystemState; 00004 import gov.nasa.arc.ase.jpf.jvm.Types; 00005 00006 public class ArrayValue extends ObjectValue { 00007 public ArrayValue(int objref, SystemState ss) { 00008 super(objref, ss); 00009 } 00010 public iValue getElementValue(int index) { 00011 if(Types.getTypeSize(e.getFieldType(index)) == 1) 00012 return State.createValue(e.getFieldType(index), e.getField(index), e.area.ks.ss); 00013 else 00014 return State.createValue(e.getFieldType(index), e.getLongField(index), e.area.ks.ss); 00015 } 00016 public int getSize() { 00017 return e.arrayLength(); 00018 } 00019 }