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

ArrayValue.java

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 }

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