(Node parent)
| 1269 | * CustomActionBody ) | TemplateText |
| 1270 | */ |
| 1271 | private void parseElements(Node parent) throws JasperException { |
| 1272 | if (scriptlessCount > 0) { |
| 1273 | // vc: ScriptlessBody |
| 1274 | // We must follow the ScriptlessBody production if one of |
| 1275 | // our parents is ScriptlessBody. |
| 1276 | parseElementsScriptless(parent); |
| 1277 | return; |
| 1278 | } |
| 1279 | |
| 1280 | start = reader.mark(); |
| 1281 | if (reader.matches("<%--")) { |
| 1282 | parseComment(parent); |
| 1283 | } else if (reader.matches("<%@")) { |
| 1284 | parseDirective(parent); |
| 1285 | } else if (reader.matches("<jsp:directive.")) { |
| 1286 | parseXMLDirective(parent); |
| 1287 | } else if (reader.matches("<%!")) { |
| 1288 | parseDeclaration(parent); |
| 1289 | } else if (reader.matches("<jsp:declaration")) { |
| 1290 | parseXMLDeclaration(parent); |
| 1291 | } else if (reader.matches("<%=")) { |
| 1292 | parseExpression(parent); |
| 1293 | } else if (reader.matches("<jsp:expression")) { |
| 1294 | parseXMLExpression(parent); |
| 1295 | } else if (reader.matches("<%")) { |
| 1296 | parseScriptlet(parent); |
| 1297 | } else if (reader.matches("<jsp:scriptlet")) { |
| 1298 | parseXMLScriptlet(parent); |
| 1299 | } else if (reader.matches("<jsp:text")) { |
| 1300 | parseXMLTemplateText(parent); |
| 1301 | } else if (!pageInfo.isELIgnored() && reader.matches("${")) { |
| 1302 | parseELExpression(parent, '$'); |
| 1303 | } else if (!pageInfo.isELIgnored() && !pageInfo.isDeferredSyntaxAllowedAsLiteral() && reader.matches("#{")) { |
| 1304 | parseELExpression(parent, '#'); |
| 1305 | } else if (reader.matches("<jsp:")) { |
| 1306 | parseStandardAction(parent); |
| 1307 | } else if (!parseCustomTag(parent)) { |
| 1308 | checkUnbalancedEndTag(); |
| 1309 | parseTemplateText(parent); |
| 1310 | } |
| 1311 | } |
| 1312 | |
| 1313 | /* |
| 1314 | * ScriptlessBody ::= ( '<%--' JSPCommentBody ) | ( '<%@' DirectiveBody ) | ( '<jsp:directive.' XMLDirectiveBody ) | |
no test coverage detected