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

Method parseElementsTemplateText

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

Source from the content-addressed store, hash-verified

1365 * TemplateText
1366 */
1367 private void parseElementsTemplateText(Node parent) throws JasperException {
1368 start = reader.mark();
1369 if (reader.matches("<%--")) {
1370 parseComment(parent);
1371 } else if (reader.matches("<%@")) {
1372 parseDirective(parent);
1373 } else if (reader.matches("<jsp:directive.")) {
1374 parseXMLDirective(parent);
1375 } else if (reader.matches("<%!")) {
1376 err.jspError(reader.mark(), "jsp.error.not.in.template", "Declarations");
1377 } else if (reader.matches("<jsp:declaration")) {
1378 err.jspError(reader.mark(), "jsp.error.not.in.template", "Declarations");
1379 } else if (reader.matches("<%=")) {
1380 err.jspError(reader.mark(), "jsp.error.not.in.template", "Expressions");
1381 } else if (reader.matches("<jsp:expression")) {
1382 err.jspError(reader.mark(), "jsp.error.not.in.template", "Expressions");
1383 } else if (reader.matches("<%")) {
1384 err.jspError(reader.mark(), "jsp.error.not.in.template", "Scriptlets");
1385 } else if (reader.matches("<jsp:scriptlet")) {
1386 err.jspError(reader.mark(), "jsp.error.not.in.template", "Scriptlets");
1387 } else if (reader.matches("<jsp:text")) {
1388 err.jspError(reader.mark(), "jsp.error.not.in.template", "&lt;jsp:text");
1389 } else if (!pageInfo.isELIgnored() && reader.matches("${")) {
1390 err.jspError(reader.mark(), "jsp.error.not.in.template", "Expression language");
1391 } else if (!pageInfo.isELIgnored() && !pageInfo.isDeferredSyntaxAllowedAsLiteral() && reader.matches("#{")) {
1392 err.jspError(reader.mark(), "jsp.error.not.in.template", "Expression language");
1393 } else if (reader.matches("<jsp:")) {
1394 err.jspError(reader.mark(), "jsp.error.not.in.template", "Standard actions");
1395 } else if (parseCustomTag(parent)) {
1396 err.jspError(reader.mark(), "jsp.error.not.in.template", "Custom actions");
1397 } else {
1398 checkUnbalancedEndTag();
1399 parseTemplateText(parent);
1400 }
1401 }
1402
1403 /*
1404 * Flag as error if an unbalanced end tag appears by itself.

Callers 1

parseBodyMethod · 0.95

Calls 11

parseCommentMethod · 0.95
parseDirectiveMethod · 0.95
parseXMLDirectiveMethod · 0.95
parseCustomTagMethod · 0.95
checkUnbalancedEndTagMethod · 0.95
parseTemplateTextMethod · 0.95
matchesMethod · 0.65
jspErrorMethod · 0.65
markMethod · 0.45
isELIgnoredMethod · 0.45

Tested by

no test coverage detected