ElementStart element = null;
String name = null;
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case T_ELEMENT_CLOSE:
jj_consume_token(T_ELEMENT_CLOSE);
events.append(new ElementEnd(this, token.image.substring(2)));
jj_consume_token(T_ELEMENT_END);
break;
case T_ELEMENT_OPEN:
jj_consume_token(T_ELEMENT_OPEN);
name = token.image.substring(1);
element = new ElementStart(this, name);
label_2:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case T_ATTRIBUTE:
;
break;
default:
jj_la1[6] = jj_gen;
break label_2;
}
p_attribute(element);
}
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case T_ELEMENT_END:
jj_consume_token(T_ELEMENT_END);
break;
case T_ELEMENT_SINGLE:
jj_consume_token(T_ELEMENT_SINGLE);
break;
default:
jj_la1[7] = jj_gen;
jj_consume_token(-1);
throw new ParseException();
}
events.append(element);
if (token.kind == T_ELEMENT_SINGLE) {
events.append(new ElementEnd(this, name));
}
break;
default:
jj_la1[8] = jj_gen;
jj_consume_token(-1);