MCPcopy Index your code
hub / github.com/apache/tomcat / parseElements

Method parseElements

java/org/apache/jasper/compiler/Parser.java:1271–1311  ·  view source on GitHub ↗
(Node parent)

Source from the content-addressed store, hash-verified

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 ) |

Callers 2

parseMethod · 0.95
parseBodyMethod · 0.95

Calls 15

parseCommentMethod · 0.95
parseDirectiveMethod · 0.95
parseXMLDirectiveMethod · 0.95
parseDeclarationMethod · 0.95
parseXMLDeclarationMethod · 0.95
parseExpressionMethod · 0.95
parseXMLExpressionMethod · 0.95
parseScriptletMethod · 0.95
parseXMLScriptletMethod · 0.95
parseXMLTemplateTextMethod · 0.95
parseELExpressionMethod · 0.95

Tested by

no test coverage detected