1 20 package gov.nasa.jpf.jvm; 21 22 import java.text.DecimalFormatSymbols ; 23 24 30 public class JPF_java_text_DecimalFormatSymbols 31 { 32 public static void initialize (MJIEnv env, int objRef, int localeRef) { 33 DecimalFormatSymbols dfs = new DecimalFormatSymbols (); 34 35 env.setCharField(objRef,"decimalSeparator", dfs.getDecimalSeparator()); 36 env.setCharField(objRef,"patternSeparator", dfs.getPatternSeparator()); 37 env.setCharField(objRef,"percent", dfs.getPercent()); 38 env.setCharField(objRef,"digit", dfs.getDigit()); 39 env.setCharField(objRef,"minusSign", dfs.getMinusSign()); 40 env.setCharField(objRef,"perMill", dfs.getPerMill()); 42 env.setReferenceField(objRef,"infinity", env.newString(dfs.getInfinity())); 43 env.setReferenceField(objRef,"NaN", env.newString(dfs.getNaN())); 44 env.setReferenceField(objRef,"currencySymbol", env.newString(dfs.getCurrencySymbol())); 45 env.setCharField(objRef,"monetarySeparator", dfs.getMonetaryDecimalSeparator()); 46 } 47 } 48 49 | Popular Tags |