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

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

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

  1. /**
  2. * Searches all subnodes of this node for jsp:attribute standard actions
  3. * with the given name, and returns the NamedAttribute node of the matching
  4. * named attribute, nor null if no such node is found.
  5. * <p>
  6. * This should always be called and only be called for nodes that accept
  7. * dynamic runtime attribute expressions.
  8. */
  9. public NamedAttribute getNamedAttributeNode(String name) {
  10. NamedAttribute result = null;
  11. // Look for the attribute in NamedAttribute children
  12. Nodes nodes = getNamedAttributeNodes();
  13. int numChildNodes = nodes.size();
  14. for (int i = 0; i < numChildNodes; i++) {
  15. NamedAttribute na = (NamedAttribute) nodes.getNode(i);
  16. boolean found = false;
  17. int index = name.indexOf(':');
  18. if (index != -1) {
  19. // qualified name
  20. found = na.getName().equals(name);
  21. } else {
  22. found = na.getLocalName().equals(name);
  23. }
  24. if (found) {
  25. result = na;
  26. break;
  27. }
  28. }
  29. return result;
  30. }

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

  1. /**
  2. * Searches all subnodes of this node for jsp:attribute standard actions
  3. * with the given name, and returns the NamedAttribute node of the matching
  4. * named attribute, nor null if no such node is found.
  5. * <p>
  6. * This should always be called and only be called for nodes that accept
  7. * dynamic runtime attribute expressions.
  8. */
  9. public NamedAttribute getNamedAttributeNode(String name) {
  10. NamedAttribute result = null;
  11. // Look for the attribute in NamedAttribute children
  12. Nodes nodes = getNamedAttributeNodes();
  13. int numChildNodes = nodes.size();
  14. for (int i = 0; i < numChildNodes; i++) {
  15. NamedAttribute na = (NamedAttribute) nodes.getNode(i);
  16. boolean found = false;
  17. int index = name.indexOf(':');
  18. if (index != -1) {
  19. // qualified name
  20. found = na.getName().equals(name);
  21. } else {
  22. found = na.getLocalName().equals(name);
  23. }
  24. if (found) {
  25. result = na;
  26. break;
  27. }
  28. }
  29. return result;
  30. }

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

  1. /**
  2. * Searches all subnodes of this node for jsp:attribute standard actions
  3. * with the given name, and returns the NamedAttribute node of the matching
  4. * named attribute, nor null if no such node is found.
  5. * <p>
  6. * This should always be called and only be called for nodes that accept
  7. * dynamic runtime attribute expressions.
  8. */
  9. public NamedAttribute getNamedAttributeNode(String name) {
  10. NamedAttribute result = null;
  11. // Look for the attribute in NamedAttribute children
  12. Nodes nodes = getNamedAttributeNodes();
  13. int numChildNodes = nodes.size();
  14. for (int i = 0; i < numChildNodes; i++) {
  15. NamedAttribute na = (NamedAttribute) nodes.getNode(i);
  16. boolean found = false;
  17. int index = name.indexOf(':');
  18. if (index != -1) {
  19. // qualified name
  20. found = na.getName().equals(name);
  21. } else {
  22. found = na.getLocalName().equals(name);
  23. }
  24. if (found) {
  25. result = na;
  26. break;
  27. }
  28. }
  29. return result;
  30. }

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

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

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

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

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

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

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

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

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

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

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

  1. /**
  2. * Searches all subnodes of this node for jsp:attribute standard actions
  3. * with the given name, and returns the NamedAttribute node of the matching
  4. * named attribute, nor null if no such node is found.
  5. * <p>
  6. * This should always be called and only be called for nodes that accept
  7. * dynamic runtime attribute expressions.
  8. */
  9. public NamedAttribute getNamedAttributeNode(String name) {
  10. NamedAttribute result = null;
  11. // Look for the attribute in NamedAttribute children
  12. Nodes nodes = getNamedAttributeNodes();
  13. int numChildNodes = nodes.size();
  14. for (int i = 0; i < numChildNodes; i++) {
  15. NamedAttribute na = (NamedAttribute) nodes.getNode(i);
  16. boolean found = false;
  17. int index = name.indexOf(':');
  18. if (index != -1) {
  19. // qualified name
  20. found = na.getName().equals(name);
  21. } else {
  22. found = na.getLocalName().equals(name);
  23. }
  24. if (found) {
  25. result = na;
  26. break;
  27. }
  28. }
  29. return result;
  30. }

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

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

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

  1. /**
  2. * Searches all subnodes of this node for jsp:attribute standard actions
  3. * with the given name, and returns the NamedAttribute node of the matching
  4. * named attribute, nor null if no such node is found.
  5. * <p>
  6. * This should always be called and only be called for nodes that accept
  7. * dynamic runtime attribute expressions.
  8. */
  9. public NamedAttribute getNamedAttributeNode(String name) {
  10. NamedAttribute result = null;
  11. // Look for the attribute in NamedAttribute children
  12. Nodes nodes = getNamedAttributeNodes();
  13. int numChildNodes = nodes.size();
  14. for (int i = 0; i < numChildNodes; i++) {
  15. NamedAttribute na = (NamedAttribute) nodes.getNode(i);
  16. boolean found = false;
  17. int index = name.indexOf(':');
  18. if (index != -1) {
  19. // qualified name
  20. found = na.getName().equals(name);
  21. } else {
  22. found = na.getLocalName().equals(name);
  23. }
  24. if (found) {
  25. result = na;
  26. break;
  27. }
  28. }
  29. return result;
  30. }

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

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

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

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

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

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

相关文章