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

JavaLangDoubleReflection.java

00001 package gov.nasa.arc.ase.jpf.jvm.reflection;
00002 
00003 import gov.nasa.arc.ase.jpf.jvm.*;
00004 import gov.nasa.arc.ase.jpf.jvm.bytecode.Instruction;
00005 
00006 public class JavaLangDoubleReflection extends Reflection {
00007   public Instruction executeStaticMethod(MethodInfo mi) {
00008     String name = mi.getFullName();
00009 
00010     if(name.equals("<clinit>()V")) {
00011       return exit();
00012     }
00013 
00014     if(name.equals("toString(D)Ljava/lang/String;")) {
00015       return exitReference(
00016       da.newString(
00017         java.lang.Double.toString(
00018           getDoubleArgument(0)),
00019         th));
00020     }
00021 
00022     return super.executeStaticMethod(mi);
00023   }  
00024 }

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