public void initInstance(Env env, Value value)
{
ObjectValue object = (ObjectValue) value;
for (Map.Entry<StringValue,FieldEntry> entry : _fieldMap.entrySet()) {
FieldEntry fieldEntry = entry.getValue();
object.initField(entry.getKey(),
fieldEntry.getValue().eval(env).copy(),
fieldEntry.getVisibility());
}
if (_destructor != null && value instanceof ObjectExtValue)
env.addObjectCleanup((ObjectExtValue) object);
}