writeConstructors(current_prototype);
proto_slots.put(current_prototype, slots);  HashMap local_defaults = new HashMap();  Iterator itr = slots.entrySet().iterator(); while (itr.hasNext()) { Map.Entry entry = (Map.Entry) itr.next(); String slot = (String) entry.getKey(); Object value = entry.getValue(); if (inherits_slot(current_prototype, slot)) { if (!value.equals(UNDEFINED)) local_defaults.put(slot, value); } else { writeSlot(slot, value); } }    writeConstructors(current_prototype, local_defaults);
    private void endPrototypeClass()    {	writeConstructors(current_prototype);	// dump accessors	for (int i=0; i<slots.size(); i++) {	    String slot = (String) slots.get(i);	    writeAccessors(slot);	}	writer.println("}");	current_prototype = null;    }