private void parsePluginTags(Node parent) throws JasperException { reader.skipSpaces(); if (reader.matches("<jsp:params")) { parseJspParams(parent); reader.skipSpaces(); } if (reader.matches("<jsp:fallback")) { parseFallBack(parent); reader.skipSpaces(); } }
private void parseElement(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node elementNode = new Node.JspElement(attrs, start, parent); parseOptionalBody(elementNode, "jsp:element", TagInfo.BODY_CONTENT_JSP); }
private void parseGetProperty(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node getPropertyNode = new Node.GetProperty(attrs, start, parent); parseOptionalBody(getPropertyNode, "jsp:getProperty", TagInfo.BODY_CONTENT_EMPTY); }
private void parsePlugin(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node pluginNode = new Node.PlugIn(attrs, start, parent); parseOptionalBody(pluginNode, "jsp:plugin", JAVAX_BODY_CONTENT_PLUGIN); }
private void parseGetProperty(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node getPropertyNode = new Node.GetProperty(attrs, start, parent); parseOptionalBody(getPropertyNode, "jsp:getProperty", TagInfo.BODY_CONTENT_EMPTY); }
private void parseDoBody(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node doBodyNode = new Node.DoBodyAction(attrs, start, parent); parseEmptyBody(doBodyNode, "jsp:doBody"); }
private void parseUseBean(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node useBeanNode = new Node.UseBean(attrs, start, parent); parseOptionalBody(useBeanNode, "jsp:useBean", TagInfo.BODY_CONTENT_JSP); }
private void parsePlugin(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node pluginNode = new Node.PlugIn(attrs, start, parent); parseOptionalBody(pluginNode, "jsp:plugin", JAVAX_BODY_CONTENT_PLUGIN); }
private void parseDoBody(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node doBodyNode = new Node.DoBodyAction(attrs, start, parent); parseEmptyBody(doBodyNode, "jsp:doBody"); }
private void parseElement(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node elementNode = new Node.JspElement(attrs, start, parent); parseOptionalBody(elementNode, "jsp:element", TagInfo.BODY_CONTENT_JSP); }
private void parseSetProperty(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node setPropertyNode = new Node.SetProperty(attrs, start, parent); parseOptionalBody(setPropertyNode, "jsp:setProperty", TagInfo.BODY_CONTENT_EMPTY); }
private void parseInclude(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node includeNode = new Node.IncludeAction(attrs, start, parent); parseOptionalBody(includeNode, "jsp:include", JAVAX_BODY_CONTENT_PARAM); }
private void parseForward(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node forwardNode = new Node.ForwardAction(attrs, start, parent); parseOptionalBody(forwardNode, "jsp:forward", JAVAX_BODY_CONTENT_PARAM); }
private void parseInvoke(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node invokeNode = new Node.InvokeAction(attrs, start, parent); parseEmptyBody(invokeNode, "jsp:invoke"); }
private void parseSetProperty(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node setPropertyNode = new Node.SetProperty(attrs, start, parent); parseOptionalBody(setPropertyNode, "jsp:setProperty", TagInfo.BODY_CONTENT_EMPTY); }
private void parseDoBody(Node parent) throws JasperException { Attributes attrs = parseAttributes(); reader.skipSpaces(); Node doBodyNode = new Node.DoBodyAction(attrs, start, parent); parseEmptyBody(doBodyNode, "jsp:doBody"); }
boolean matchesETagWithoutLessThan(String tagName) { Mark mark = mark(); if (!matches("/" + tagName)) return false; skipSpaces(); if (nextChar() == '>') return true; setCurrent(mark); return false; }
boolean matchesETag(String tagName) throws JasperException { Mark mark = mark(); if (!matches("</" + tagName)) return false; skipSpaces(); if (nextChar() == '>') return true; reset(mark); return false; }
boolean matchesETag(String tagName) { Mark mark = mark(); if (!matches("</" + tagName)) return false; skipSpaces(); if (nextChar() == '>') return true; setCurrent(mark); return false; }
private void parseJspBody(Node parent, String bodyType) throws JasperException { Mark start = reader.mark(); Node bodyNode = new Node.JspBody(start, parent); reader.skipSpaces(); if (!reader.matches("/>")) { if (!reader.matches(">")) { err.jspError(start, "jsp.error.unterminated", "<jsp:body"); } parseBody(bodyNode, "jsp:body", bodyType); } }