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

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

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

Node.getLocalName介绍

暂无

代码示例

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
    throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
        || text != null) {
    buf.append(">\n");
    if (ROOT_ACTION.equals(n.getLocalName())) {
      if (compiler.getCompilationContext().isTagFile()) {
        appendTagDirective();
      } else {
        appendPageDirective();
      }
    }
    if (body != null) {
      body.visit(this);
    } else {
      appendText(text, false);
    }
    buf.append("</" + n.getQName() + ">\n");
  } else {
    buf.append("/>\n");
  }
}

代码示例来源:origin: io.undertow.jastow/jastow

private void appendTag(Node n, boolean addDefaultNS)
    throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
        || text != null) {
    buf.append(">\n");
    if (ROOT_ACTION.equals(n.getLocalName())) {
      if (compiler.getCompilationContext().isTagFile()) {
        appendTagDirective();
      } else {
        appendPageDirective();
      }
    }
    if (body != null) {
      body.visit(this);
    } else {
      appendText(text, false);
    }
    buf.append("</" + n.getQName() + ">\n");
  } else {
    buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

private void appendTag(Node n, boolean addDefaultNS)
    throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
        || text != null) {
    buf.append(">\n");
    if (ROOT_ACTION.equals(n.getLocalName())) {
      if (compiler.getCompilationContext().isTagFile()) {
        appendTagDirective();
      } else {
        appendPageDirective();
      }
    }
    if (body != null) {
      body.visit(this);
    } else {
      appendText(text, false);
    }
    buf.append("</" + n.getQName() + ">\n");
  } else {
    buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
    throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
        || text != null) {
    buf.append(">\n");
    if (ROOT_ACTION.equals(n.getLocalName())) {
      if (compiler.getCompilationContext().isTagFile()) {
        appendTagDirective();
      } else {
        appendPageDirective();
      }
    }
    if (body != null) {
      body.visit(this);
    } else {
      appendText(text, false);
    }
    buf.append("</" + n.getQName() + ">\n");
  } else {
    buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
    throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
        || text != null) {
    buf.append(">\n");
    if (ROOT_ACTION.equals(n.getLocalName())) {
      if (compiler.getCompilationContext().isTagFile()) {
        appendTagDirective();
      } else {
        appendPageDirective();
      }
    }
    if (body != null) {
      body.visit(this);
    } else {
      appendText(text, false);
    }
    buf.append("</" + n.getQName() + ">\n");
  } else {
    buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

private void appendTag(Node n, boolean addDefaultNS)
  throws JasperException {
  Node.Nodes body = n.getBody();
  String text = n.getText();
  buf.append("<").append(n.getQName());
  buf.append("\n");
  printAttributes(n, addDefaultNS);
  buf.append("  ").append(jspIdPrefix).append(":id").append("=\"");
  buf.append(jspId++).append("\"\n");
  if (ROOT_ACTION.equals(n.getLocalName()) || body != null
      || text != null) {
  buf.append(">\n");
  if (ROOT_ACTION.equals(n.getLocalName())) {
    if (compiler.getCompilationContext().isTagFile()) {
    appendTagDirective();
    } else {
    appendPageDirective();
    }
  }
  if (body != null) {
    body.visit(this);
  } else {
    appendText(text, false);
  }
  buf.append("</" + n.getQName() + ">\n");
  } else {
  buf.append("/>\n");
  }
}

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

if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())) {
  throw new SAXParseException(
    Localizer.getMessage("jsp.error.text.has_subelement"),

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

if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())) {
  throw new SAXParseException(
    Localizer.getMessage("jsp.error.text.has_subelement"),

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())
    && "jsp".equals(currentPrefix)) {
  throw new SAXParseException(

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

if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())
            && "jsp".equals(currentPrefix)) {
  throw new SAXParseException(

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

if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())
    && "jsp".equals(currentPrefix)) {
  throw new SAXParseException(

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

if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())
            && "jsp".equals(currentPrefix)) {
  throw new SAXParseException(

相关文章