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

JavaLangReflectArrayReflection.java

00001 package gov.nasa.arc.ase.jpf.jvm.reflection;
00002 
00003 import gov.nasa.arc.ase.jpf.InternalErrorException;
00004 import gov.nasa.arc.ase.jpf.iThreadInfo;
00005 import gov.nasa.arc.ase.jpf.jvm.*;
00006 import gov.nasa.arc.ase.jpf.jvm.bytecode.Instruction;
00007 
00008 public class JavaLangReflectArrayReflection extends Reflection {
00009   public Instruction executeStaticMethod(MethodInfo mi) {
00010     String name = mi.getFullName();
00011 
00012     if(name.equals("getLength(Ljava/lang/Object;)I")) {
00013       int array = getIntArgument(0);
00014       return exit(da.get(array).arrayLength());
00015     }
00016 
00017     return super.executeStaticMethod(mi);
00018 
00019   }  
00020 }

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