Iterator<Field> fields = type.altFieldIterator(alt.getId());
print("(");
if (fields.hasNext()) {
while (fields.hasNext()) {
Field field = fields.next();
String field_id = impl.FieldName(field.getId());
String field_class = impl.FieldType(field.getType());
String field_type = field_class;
print(field_id + ":" + field_type);
if (fields.hasNext()) {
print(", ");
}
}
}
print(")");
println(" {");
String isfsymimpl = "false";
if (!tomConverter.isReserved(type.getId())) {
isfsymimpl = prefix
+ impl.OperatorIsFSym("t", class_name, operator_name);
}
println(" is_fsym(t) { " + isfsymimpl + "}");
if (!tomConverter.isReserved(type.getId())) {
fields = type.altFieldIterator(alt.getId());
while (fields.hasNext()) {
Field field = fields.next();
String field_id = StringConversions.makeIdentifier(field
.getId());
println(" get_slot(" + field_id + ",t) { "
+ impl.OperatorGetSlot("t", class_name, field_id) + "}");
}
}