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

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

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

Node.getNamedAttributeNodes介绍

[英]Searches all subnodes of this node for jsp:attribute standard actions, and returns that set of nodes as a Node.Nodes object.
[中]在该节点的所有子节点中搜索jsp:attribute标准操作,并将该组节点作为节点返回。节点对象。

代码示例

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

/**
 * Searches all subnodes of this node for jsp:attribute standard actions
 * with the given name, and returns the NamedAttribute node of the matching
 * named attribute, nor null if no such node is found.
 * <p>
 * This should always be called and only be called for nodes that accept
 * dynamic runtime attribute expressions.
 */
public NamedAttribute getNamedAttributeNode(String name) {
  NamedAttribute result = null;
  // Look for the attribute in NamedAttribute children
  Nodes nodes = getNamedAttributeNodes();
  int numChildNodes = nodes.size();
  for (int i = 0; i < numChildNodes; i++) {
    NamedAttribute na = (NamedAttribute) nodes.getNode(i);
    boolean found = false;
    int index = name.indexOf(':');
    if (index != -1) {
      // qualified name
      found = na.getName().equals(name);
    } else {
      found = na.getLocalName().equals(name);
    }
    if (found) {
      result = na;
      break;
    }
  }
  return result;
}

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

/**
 * Searches all subnodes of this node for jsp:attribute standard actions
 * with the given name, and returns the NamedAttribute node of the matching
 * named attribute, nor null if no such node is found.
 * <p>
 * This should always be called and only be called for nodes that accept
 * dynamic runtime attribute expressions.
 */
public NamedAttribute getNamedAttributeNode(String name) {
  NamedAttribute result = null;
  // Look for the attribute in NamedAttribute children
  Nodes nodes = getNamedAttributeNodes();
  int numChildNodes = nodes.size();
  for (int i = 0; i < numChildNodes; i++) {
    NamedAttribute na = (NamedAttribute) nodes.getNode(i);
    boolean found = false;
    int index = name.indexOf(':');
    if (index != -1) {
      // qualified name
      found = na.getName().equals(name);
    } else {
      found = na.getLocalName().equals(name);
    }
    if (found) {
      result = na;
      break;
    }
  }
  return result;
}

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

/**
 * Searches all subnodes of this node for jsp:attribute standard actions
 * with the given name, and returns the NamedAttribute node of the matching
 * named attribute, nor null if no such node is found.
 * <p>
 * This should always be called and only be called for nodes that accept
 * dynamic runtime attribute expressions.
 */
public NamedAttribute getNamedAttributeNode(String name) {
  NamedAttribute result = null;
  // Look for the attribute in NamedAttribute children
  Nodes nodes = getNamedAttributeNodes();
  int numChildNodes = nodes.size();
  for (int i = 0; i < numChildNodes; i++) {
    NamedAttribute na = (NamedAttribute) nodes.getNode(i);
    boolean found = false;
    int index = name.indexOf(':');
    if (index != -1) {
      // qualified name
      found = na.getName().equals(name);
    } else {
      found = na.getLocalName().equals(name);
    }
    if (found) {
      result = na;
      break;
    }
  }
  return result;
}

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

/**
 * Searches all subnodes of this node for jsp:attribute standard actions
 * with the given name, and returns the NamedAttribute node of the matching
 * named attribute, nor null if no such node is found.
 * <p>
 * This should always be called and only be called for nodes that accept
 * dynamic runtime attribute expressions.
 */
public NamedAttribute getNamedAttributeNode(String name) {
  NamedAttribute result = null;
  // Look for the attribute in NamedAttribute children
  Nodes nodes = getNamedAttributeNodes();
  int numChildNodes = nodes.size();
  for (int i = 0; i < numChildNodes; i++) {
    NamedAttribute na = (NamedAttribute) nodes.getNode(i);
    boolean found = false;
    int index = name.indexOf(':');
    if (index != -1) {
      // qualified name
      found = na.getName().equals(name);
    } else {
      found = na.getLocalName().equals(name);
    }
    if (found) {
      result = na;
      break;
    }
  }
  return result;
}

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

/**
 * Searches all subnodes of this node for jsp:attribute standard actions
 * with the given name, and returns the NamedAttribute node of the matching
 * named attribute, nor null if no such node is found.
 * <p>
 * This should always be called and only be called for nodes that accept
 * dynamic runtime attribute expressions.
 */
public NamedAttribute getNamedAttributeNode(String name) {
  NamedAttribute result = null;
  // Look for the attribute in NamedAttribute children
  Nodes nodes = getNamedAttributeNodes();
  int numChildNodes = nodes.size();
  for (int i = 0; i < numChildNodes; i++) {
    NamedAttribute na = (NamedAttribute) nodes.getNode(i);
    boolean found = false;
    int index = name.indexOf(':');
    if (index != -1) {
      // qualified name
      found = na.getName().equals(name);
    } else {
      found = na.getLocalName().equals(name);
    }
    if (found) {
      result = na;
      break;
    }
  }
  return result;
}

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for( int i = 0; i < numChildNodes; i++ ) {

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for (int i = 0; i < numChildNodes; i++) {

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

Nodes nodes = getNamedAttributeNodes();
int numChildNodes = nodes.size();
for (int i = 0; i < numChildNodes; i++) {

相关文章