public int write (int index, String indent, String name, SymtabEntry entry, PrintWriter stream)
{
UnionEntry u = (UnionEntry)entry;
SymtabEntry utype = Util.typeOf (u.type ());
if (utype instanceof PrimitiveEntry)
index = ((JavaGenerator)utype.generator ()).write (index, indent, name + ".discriminator ()", utype, stream);
else
stream.println (indent + Util.helperName (utype, true) + ".write (ostream, " + name + ".discriminator ());"); // <d61056>
if (utype.name ().equals ("boolean"))
index = writeBoolean (name + ".discriminator ()", index, indent, name, u, stream);
else