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

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

本文整理了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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

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

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

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

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

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

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

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

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

/**
   * For the same reason as above, the source line information in the
   * contained TemplateText node should be used.
   */
  public Mark getStart() {
    if (text == null && body != null && body.size() > 0) {
      return body.getNode(0).getStart();
    } else {
      return super.getStart();
    }
  }
}

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

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

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

public void setSession(String value, Node n, ErrorDispatcher err)
  throws JasperException {
  if ("true".equalsIgnoreCase(value))
    isSession = true;
  else if ("false".equalsIgnoreCase(value))
    isSession = false;
  else
    err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveSession());
  session = value;
}

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

public void setAutoFlush(String value, Node n, ErrorDispatcher err)
  throws JasperException {
  if ("true".equalsIgnoreCase(value))
    isAutoFlush = true;
  else if ("false".equalsIgnoreCase(value))
    isAutoFlush = false;
  else
    err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveAutoFlush());
  autoFlush = value;
}

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

public void setIsThreadSafe(String value, Node n, ErrorDispatcher err)
  throws JasperException {
  if ("true".equalsIgnoreCase(value))
    isThreadSafe = true;
  else if ("false".equalsIgnoreCase(value))
    isThreadSafe = false;
  else
    err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveIsThreadSafe());
  isThreadSafeValue = value;
}

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

public void setIsErrorPage(String value, Node n, ErrorDispatcher err)
  throws JasperException {
  if ("true".equalsIgnoreCase(value))
    isErrorPage = true;
  else if ("false".equalsIgnoreCase(value))
    isErrorPage = false;
  else
    err.jspError(n.getStart(), MESSAGES.invalidPageDirectiveIsErrorPage());
  isErrorPageValue = value;
}

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

public void setLanguage(String value, Node n, ErrorDispatcher err,
      boolean pagedir)
  throws JasperException {
  if (!"java".equalsIgnoreCase(value)) {
    if (pagedir)
      err.jspError(n.getStart(), MESSAGES.unsupportedPageDirectiveLanguage());
    else
      err.jspError(n.getStart(), MESSAGES.unsupportedTagDirectiveLanguage());
  }
  language = value;
}

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

private void throwErrorIfExpression(Node n, String attrName,
    String actionName) throws JasperException {
  if (n.getAttributes() != null
      && n.getAttributes().getValue(attrName) != null
      && isExpression(n, n.getAttributes().getValue(attrName), true)) {
    err.jspError(n.getStart(),
        MESSAGES.noExpressionAllowedForAttributeInAction(attrName, actionName));
  }
}

相关文章