org.apache.jasper.compiler.Node.getStart()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中org.apache.jasper.compiler.Node.getStart()方法的一些代码示例,展示了Node.getStart()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getStart()方法的具体详情如下:
包路径:org.apache.jasper.compiler.Node
类名称:Node
方法名:getStart

Node.getStart介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.web/jsp-impl

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.apache.geronimo.ext.tomcat/jasper

  1. public void jspError(Node n, String errCode, String arg1, String arg2,
  2. String arg3)
  3. throws JasperException {
  4. dispatch(n.getStart(), errCode, new Object[] {arg1, arg2, arg3}, null);
  5. }

代码示例来源:origin: org.glassfish.web/javax.servlet.jsp

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: jboss.web/jbossweb

  1. public void jspError(Node n, String errCode, String arg1, String arg2,
  2. String arg3)
  3. throws JasperException {
  4. dispatch(n.getStart(), errCode, new Object[] {arg1, arg2, arg3}, null);
  5. }

代码示例来源:origin: codefollower/Tomcat-Research

  1. public void jspError(Node n, String errCode, String... args)
  2. throws JasperException {
  3. dispatch(n.getStart(), errCode, args, null);
  4. }

代码示例来源:origin: org.eclipse.jetty.orbit/org.apache.jasper.glassfish

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.eclipse.jetty.toolchain/jetty-jsp-fragment

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.glassfish.web/jakarta.servlet.jsp

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.jasper.glassfish

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.glassfish.web/javax.servlet.jsp

  1. public void jspError(Node n, String errCode, String arg, Exception e)
  2. throws JasperException {
  3. dispatch(n.getStart(), errCode, new Object[] {arg}, e);
  4. }

代码示例来源:origin: jboss.web/jbossweb

  1. /**
  2. * For the same reason as above, the source line information in the
  3. * contained TemplateText node should be used.
  4. */
  5. public Mark getStart() {
  6. if (text == null && body != null && body.size() > 0) {
  7. return body.getNode(0).getStart();
  8. } else {
  9. return super.getStart();
  10. }
  11. }
  12. }

代码示例来源:origin: org.eclipse.jetty.orbit/org.apache.jasper.glassfish

  1. public void jspError(Node n, String errCode, String arg, Exception e)
  2. throws JasperException {
  3. dispatch(n.getStart(), errCode, new Object[] {arg}, e);
  4. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. public void setSession(String value, Node n, ErrorDispatcher err)
  2. throws JasperException {
  3. if ("true".equalsIgnoreCase(value))
  4. isSession = true;
  5. else if ("false".equalsIgnoreCase(value))
  6. isSession = false;
  7. else
  8. err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveSession());
  9. session = value;
  10. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. public void setAutoFlush(String value, Node n, ErrorDispatcher err)
  2. throws JasperException {
  3. if ("true".equalsIgnoreCase(value))
  4. isAutoFlush = true;
  5. else if ("false".equalsIgnoreCase(value))
  6. isAutoFlush = false;
  7. else
  8. err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveAutoFlush());
  9. autoFlush = value;
  10. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. public void setIsThreadSafe(String value, Node n, ErrorDispatcher err)
  2. throws JasperException {
  3. if ("true".equalsIgnoreCase(value))
  4. isThreadSafe = true;
  5. else if ("false".equalsIgnoreCase(value))
  6. isThreadSafe = false;
  7. else
  8. err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveIsThreadSafe());
  9. isThreadSafeValue = value;
  10. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. public void setIsErrorPage(String value, Node n, ErrorDispatcher err)
  2. throws JasperException {
  3. if ("true".equalsIgnoreCase(value))
  4. isErrorPage = true;
  5. else if ("false".equalsIgnoreCase(value))
  6. isErrorPage = false;
  7. else
  8. err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveIsErrorPage());
  9. isErrorPageValue = value;
  10. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. public void setLanguage(String value, Node n, ErrorDispatcher err,
  2. boolean pagedir)
  3. throws JasperException {
  4. if (!"java".equalsIgnoreCase(value)) {
  5. if (pagedir)
  6. err.jspError(n.getStart(), MESSAGES.unsupportedPageDirectiveLanguage());
  7. else
  8. err.jspError(n.getStart(), MESSAGES.unsupportedTagDirectiveLanguage());
  9. }
  10. language = value;
  11. }

代码示例来源:origin: org.jboss.web/jbossweb

  1. private void throwErrorIfExpression(Node n, String attrName,
  2. String actionName) throws JasperException {
  3. if (n.getAttributes() != null
  4. && n.getAttributes().getValue(attrName) != null
  5. && isExpression(n, n.getAttributes().getValue(attrName), true)) {
  6. err.jspError(n.getStart(),
  7. MESSAGES.noExpressionAllowedForAttributeInAction(attrName, actionName));
  8. }
  9. }

相关文章