/** * Set this variable into the given object using Unsafe to ensure * safe updating of the variable table. * * @param object the object into which to set this variable * @param value the variable's value */ public void set(Object object, Object value) { ((RubyBasicObject)object).ensureInstanceVariablesSettable(); setVariable((RubyBasicObject)object, realClass, index, value); }
break; case 6: newVariableAccessor = new VariableAccessorVar6(realClass, name, newIndex, id); break; case 7:
break; case 6: newVariableAccessor = new VariableAccessorVar6(realClass, name, newIndex, id); break; case 7:
/** * Set this variable into the given object using Unsafe to ensure * safe updating of the variable table. * * @param object the object into which to set this variable * @param value the variable's value */ public void set(Object object, Object value) { ((RubyBasicObject)object).ensureInstanceVariablesSettable(); setVariable((RubyBasicObject)object, realClass, index, value); }
/** * Set the given variable index into the specified object. The "real" class * and index are pass in to provide functional access. This version checks * if self has been frozen before proceeding to set the variable. * * @param self the object into which to set the variable * @param realClass the "real" class for the object * @param index the index of the variable * @param value the variable's value */ public static void setVariableChecked(RubyBasicObject self, RubyClass realClass, int index, Object value) { self.ensureInstanceVariablesSettable(); setVariable(self, realClass, index, value); }
/** * Set the given variable index into the specified object. The "real" class * and index are pass in to provide functional access. This version checks * if self has been frozen before proceeding to set the variable. * * @param self the object into which to set the variable * @param realClass the "real" class for the object * @param index the index of the variable * @param value the variable's value */ public static void setVariableChecked(RubyBasicObject self, RubyClass realClass, int index, Object value) { self.ensureInstanceVariablesSettable(); setVariable(self, realClass, index, value); }