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

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

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

Node.getTaglibAttributes介绍

暂无

代码示例

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
    Attributes attrs = p.getTaglibAttributes();
    if (attrs == null) {
      continue;
    }
    for (int i = 0; i < attrs.getLength(); i++) {
      String name = attrs.getQName(i);
      int k = name.indexOf(':');
      if (prefix == null && k < 0) {
        // prefix not specified and a default ns found
        return attrs.getValue(i);
      }
      if (prefix != null && k >= 0
          && prefix.equals(name.substring(k + 1))) {
        return attrs.getValue(i);
      }
    }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

private String findUri(String prefix, Node n) {
  for (Node p = n; p != null; p = p.getParent()) {
  Attributes attrs = p.getTaglibAttributes();
  if (attrs == null) {
    continue;
  }
  for (int i = 0; i < attrs.getLength(); i++) {
    String name = attrs.getQName(i);
    int k = name.indexOf(':');
    if (prefix == null && k < 0) {
    // prefix not specified and a default ns found
    return attrs.getValue(i);
    }   
    if (prefix != null && k >= 0 &&
      prefix.equals(name.substring(k+1))) {
    return attrs.getValue(i);
    }
  }
  }
  return null;
}

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

Attributes attrs = n.getTaglibAttributes();
int len = (attrs == null) ? 0 : attrs.getLength();
for (int i=0; i<len; i++) {

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

Attributes attrs = n.getTaglibAttributes();
int len = (attrs == null) ? 0 : attrs.getLength();
for (int i=0; i<len; i++) {

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

Attributes attrs = n.getTaglibAttributes();
int len = (attrs == null) ? 0 : attrs.getLength();
for (int i=0; i<len; i++) {

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

Attributes attrs = n.getTaglibAttributes();
int len = (attrs == null) ? 0 : attrs.getLength();
for (int i=0; i<len; i++) {

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

Attributes attrs = n.getTaglibAttributes();
int len = (attrs == null) ? 0 : attrs.getLength();
for (int i=0; i<len; i++) {

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

Attributes attrs = n.getTaglibAttributes();
int len = (attrs == null) ? 0 : attrs.getLength();
for (int i=0; i<len; i++) {

相关文章