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

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

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

Node.accept介绍

[英]Selects and invokes a method in the visitor class based on the node type. This is abstract and should be overrode by the extending classes.
[中]根据节点类型选择并调用visitor类中的方法。这是抽象的,应该被扩展类覆盖。

代码示例

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. *
  4. * @param v
  5. * The visitor used
  6. *
  7. * @throws JasperException if an error occurs while visiting a node
  8. */
  9. public void visit(Visitor v) throws JasperException {
  10. for (Node n : list) {
  11. n.accept(v);
  12. }
  13. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. * @param v The visitor used
  4. */
  5. public void visit(Visitor v) throws JasperException {
  6. Iterator<Node> iter = list.iterator();
  7. while (iter.hasNext()) {
  8. Node n = iter.next();
  9. n.accept(v);
  10. }
  11. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. * @param v The visitor used
  4. */
  5. public void visit(Visitor v) throws JasperException {
  6. Iterator<Node> iter = list.iterator();
  7. while (iter.hasNext()) {
  8. Node n = iter.next();
  9. n.accept(v);
  10. }
  11. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. * @param v The visitor used
  4. */
  5. public void visit(Visitor v) throws JasperException {
  6. Iterator<Node> iter = list.iterator();
  7. while (iter.hasNext()) {
  8. Node n = iter.next();
  9. n.accept(v);
  10. }
  11. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. *
  4. * @param v
  5. * The visitor used
  6. */
  7. public void visit(Visitor v) throws JasperException {
  8. Iterator<Node> iter = list.iterator();
  9. while (iter.hasNext()) {
  10. Node n = iter.next();
  11. n.accept(v);
  12. }
  13. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. * @param v The visitor used
  4. */
  5. public void visit(Visitor v) throws JasperException {
  6. Iterator iter = list.iterator();
  7. while (iter.hasNext()) {
  8. Node n = (Node) iter.next();
  9. n.accept(v);
  10. }
  11. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. * @param v The visitor used
  4. */
  5. public void visit(Visitor v) throws JasperException {
  6. Iterator iter = list.iterator();
  7. while (iter.hasNext()) {
  8. Node n = (Node) iter.next();
  9. n.accept(v);
  10. }
  11. }

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

  1. /**
  2. * Visit the nodes in the list with the supplied visitor
  3. * @param v The visitor used
  4. */
  5. public void visit(Visitor v) throws JasperException {
  6. Iterator<Node> iter = list.iterator();
  7. while (iter.hasNext()) {
  8. Node n = iter.next();
  9. n.accept(v);
  10. }
  11. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

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

  1. public static void dump(Node n) {
  2. try {
  3. n.accept(new DumpVisitor());
  4. } catch (JasperException e) {
  5. e.printStackTrace();
  6. }
  7. }

相关文章