(Node parent, String tag, String bodyType)
| 919 | * |
| 920 | */ |
| 921 | private void parseOptionalBody(Node parent, String tag, String bodyType) throws JasperException { |
| 922 | if (reader.matches("/>")) { |
| 923 | // EmptyBody |
| 924 | return; |
| 925 | } |
| 926 | |
| 927 | if (!reader.matches(">")) { |
| 928 | err.jspError(reader.mark(), "jsp.error.unterminated", "<" + tag); |
| 929 | } |
| 930 | |
| 931 | if (reader.matchesETag(tag)) { |
| 932 | // EmptyBody |
| 933 | return; |
| 934 | } |
| 935 | |
| 936 | if (!parseJspAttributeAndBody(parent, tag, bodyType)) { |
| 937 | // Must be ( '>' # Body ETag ) |
| 938 | parseBody(parent, tag, bodyType); |
| 939 | } |
| 940 | } |
| 941 | |
| 942 | /** |
| 943 | * Attempts to parse 'JspAttributeAndBody' production. Returns true if it matched, or false if not. Assumes |
no test coverage detected