105106107108109110111112113114115
.out("case CHARACTERS:") .in(); createSimpleTypeHandlerCall(element, "xmlr.getText()", reader); reader .out("break;") .close() .close("while (xmlr.hasNext());") .add(fail("Unclosed element"));
171172173174175176177178179180181
.add("%s(xmlr);", child.readTagMethodName) .close("else"); } } reader.in(fail("Unexpected child: %s", "xmlr.getName()")); reader.out("break;"); } reader .out("case END_ELEMENT:") .in("%s();", element.closeTagMethodName)
174175176177178179180181182183184
} reader.in(fail("Unexpected child: %s", "xmlr.getName()")); reader.out("break;"); } reader .out("case END_ELEMENT:") .in("%s();", element.closeTagMethodName) .add("return;") .out("case END_DOCUMENT:") .in(fail("Unexpected end of document"))