1 20 25 package gov.nasa.jpf.jvm; 26 27 30 public class JPF_java_lang_Short { 31 public static short parseShort__Ljava_lang_String_2 (MJIEnv env, 32 int clsObjRef, 33 int strRef) { 34 try { 35 return Short.parseShort(env.getStringObject(strRef)); 36 } catch (NumberFormatException e) { 37 env.throwException("java.lang.NumberFormatException"); 38 39 return 0; 40 } 41 } 42 43 public static short parseShort__Ljava_lang_String_2II (MJIEnv env, 44 int clsObjRef, 45 int strRef, int radix) { 46 try { 47 return Short.parseShort(env.getStringObject(strRef), radix); 48 } catch (NumberFormatException e) { 49 env.throwException("java.lang.NumberFormatException"); 50 51 return 0; 52 } 53 } 54 55 public static int toString__S (MJIEnv env, int objref, short val) { 56 return env.newString(Short.toString(val)); 57 } 58 } | Popular Tags |