public static void setField(Field f, Object object, Object value) throws IllegalAccessException, IllegalArgumentException { VM_TypeReference type = java.lang.reflect.JikesRVMSupport.getFieldOf(f).getType();  if (type.isReferenceType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setObjectValue(object, value); else if (type.isCharType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setCharValue(object, VM_Reflection.unwrapChar(value)); else if (type.isDoubleType())    java.lang.reflect.JikesRVMSupport.getFieldOf(f).setDoubleValue(object, VM_Reflection.unwrapDouble(value)); else if (type.isFloatType())     java.lang.reflect.JikesRVMSupport.getFieldOf(f).setFloatValue(object, VM_Reflection.unwrapFloat(value)); else if (type.isLongType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setLongValue(object, VM_Reflection.unwrapLong(value)); else if (type.isIntType())       java.lang.reflect.JikesRVMSupport.getFieldOf(f).setIntValue(object, VM_Reflection.unwrapInt(value)); else if (type.isShortType())     java.lang.reflect.JikesRVMSupport.getFieldOf(f).setShortValue(object, VM_Reflection.unwrapShort(value)); else if (type.isByteType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setByteValue(object, VM_Reflection.unwrapByte(value)); else if (type.isBooleanType())   java.lang.reflect.JikesRVMSupport.getFieldOf(f).setBooleanValue(object, VM_Reflection.unwrapBoolean(value));
public static void setField(Field f, Object object, Object value) throws IllegalAccessException, IllegalArgumentException { VM_Field vm_field = java.lang.reflect.JikesRVMSupport.getFieldOf(f); VM_TypeReference type = vm_field.getType(); if (type.isReferenceType())      vm_field.setObjectValue(object, value); else if (type.isCharType())      vm_field.setCharValue(object, VM_Reflection.unwrapChar(value)); else if (type.isDoubleType())    vm_field.setDoubleValue(object, VM_Reflection.unwrapDouble(value)); else if (type.isFloatType())     vm_field.setFloatValue(object, VM_Reflection.unwrapFloat(value)); else if (type.isLongType())      vm_field.setLongValue(object, VM_Reflection.unwrapLong(value)); else if (type.isIntType())       vm_field.setIntValue(object, VM_Reflection.unwrapInt(value)); else if (type.isShortType())     vm_field.setShortValue(object, VM_Reflection.unwrapShort(value)); else if (type.isByteType())      vm_field.setByteValue(object, VM_Reflection.unwrapByte(value)); else if (type.isBooleanType())   vm_field.setBooleanValue(object, VM_Reflection.unwrapBoolean(value));
  public static void setField(Field f, Object object, Object value) throws IllegalAccessException, IllegalArgumentException  {    VM_TypeReference type = java.lang.reflect.JikesRVMSupport.getFieldOf(f).getType();    if (type.isReferenceType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setObjectValue(object, value);    else if (type.isCharType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setCharValue(object, VM_Reflection.unwrapChar(value));    else if (type.isDoubleType())    java.lang.reflect.JikesRVMSupport.getFieldOf(f).setDoubleValue(object, VM_Reflection.unwrapDouble(value));    else if (type.isFloatType())     java.lang.reflect.JikesRVMSupport.getFieldOf(f).setFloatValue(object, VM_Reflection.unwrapFloat(value));    else if (type.isLongType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setLongValue(object, VM_Reflection.unwrapLong(value));    else if (type.isIntType())       java.lang.reflect.JikesRVMSupport.getFieldOf(f).setIntValue(object, VM_Reflection.unwrapInt(value));    else if (type.isShortType())     java.lang.reflect.JikesRVMSupport.getFieldOf(f).setShortValue(object, VM_Reflection.unwrapShort(value));    else if (type.isByteType())      java.lang.reflect.JikesRVMSupport.getFieldOf(f).setByteValue(object, VM_Reflection.unwrapByte(value));    else if (type.isBooleanType())   java.lang.reflect.JikesRVMSupport.getFieldOf(f).setBooleanValue(object, VM_Reflection.unwrapBoolean(value));  }