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

Method parseStandardAction

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

Source from the content-addressed store, hash-verified

982 * 'plugin' StdActionContent | 'element' StdActionContent
983 */
984 private void parseStandardAction(Node parent) throws JasperException {
985 Mark start = reader.mark();
986
987 if (reader.matches(INCLUDE_ACTION)) {
988 parseInclude(parent);
989 } else if (reader.matches(FORWARD_ACTION)) {
990 parseForward(parent);
991 } else if (reader.matches(INVOKE_ACTION)) {
992 if (!isTagFile) {
993 err.jspError(reader.mark(), "jsp.error.action.isnottagfile", "<jsp:invoke");
994 }
995 parseInvoke(parent);
996 } else if (reader.matches(DOBODY_ACTION)) {
997 if (!isTagFile) {
998 err.jspError(reader.mark(), "jsp.error.action.isnottagfile", "<jsp:doBody");
999 }
1000 parseDoBody(parent);
1001 } else if (reader.matches(GET_PROPERTY_ACTION)) {
1002 parseGetProperty(parent);
1003 } else if (reader.matches(SET_PROPERTY_ACTION)) {
1004 parseSetProperty(parent);
1005 } else if (reader.matches(USE_BEAN_ACTION)) {
1006 parseUseBean(parent);
1007 } else if (reader.matches(ELEMENT_ACTION)) {
1008 parseElement(parent);
1009 } else if (reader.matches(ATTRIBUTE_ACTION)) {
1010 err.jspError(start, "jsp.error.namedAttribute.invalidUse");
1011 } else if (reader.matches(BODY_ACTION)) {
1012 err.jspError(start, "jsp.error.jspbody.invalidUse");
1013 } else if (reader.matches(PARAM_ACTION)) {
1014 err.jspError(start, "jsp.error.param.invalidUse");
1015 } else if (reader.matches(OUTPUT_ACTION)) {
1016 err.jspError(start, "jsp.error.jspoutput.invalidUse");
1017 } else {
1018 err.jspError(start, "jsp.error.badStandardAction");
1019 }
1020 }
1021
1022 /*
1023 * # '<' CustomAction CustomActionBody

Callers 2

parseElementsMethod · 0.95

Calls 11

parseIncludeMethod · 0.95
parseForwardMethod · 0.95
parseInvokeMethod · 0.95
parseDoBodyMethod · 0.95
parseGetPropertyMethod · 0.95
parseSetPropertyMethod · 0.95
parseUseBeanMethod · 0.95
parseElementMethod · 0.95
matchesMethod · 0.65
jspErrorMethod · 0.65
markMethod · 0.45

Tested by

no test coverage detected