commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r587022 - /commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/parser/VisitorAdapter.java
Date Mon, 22 Oct 2007 07:41:17 GMT
Author: dion
Date: Mon Oct 22 00:41:17 2007
New Revision: 587022

URL: http://svn.apache.org/viewvc?rev=587022&view=rev
Log:
checkstyle

Modified:
    commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/parser/VisitorAdapter.java

Modified: commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/parser/VisitorAdapter.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/parser/VisitorAdapter.java?rev=587022&r1=587021&r2=587022&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/parser/VisitorAdapter.java
(original)
+++ commons/proper/jexl/branches/2.0/src/java/org/apache/commons/jexl/parser/VisitorAdapter.java
Mon Oct 22 00:41:17 2007
@@ -3,7 +3,7 @@
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License") you may not use this file except in compliance with
+ * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
  *
  *      http://www.apache.org/licenses/LICENSE-2.0
@@ -17,50 +17,281 @@
 
 package org.apache.commons.jexl.parser;
 
+/**
+ * Implementation of the ParserVisitor that dumps the current node and it's
+ * children and then visits them.
+ * 
+ * @author Dion Gillard
+ */
 public class VisitorAdapter implements ParserVisitor {
-  public Object visit(SimpleNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTJexlScript node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTBlock node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTEmptyFunction node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTSizeFunction node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTIdentifier node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTExpression node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTAssignment node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTOrNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTAndNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTBitwiseOrNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTBitwiseXorNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTBitwiseAndNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTEQNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTNENode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTLTNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTGTNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTLENode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTGENode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTAddNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTSubtractNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTMulNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTDivNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTModNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTUnaryMinusNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTBitwiseComplNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTNotNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTNullLiteral node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTTrueNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTFalseNode node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTIntegerLiteral node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTFloatLiteral node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTStringLiteral node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTExpressionExpression node, Object data) { node.dump(" ");return
node.childrenAccept(this, data); }
-  public Object visit(ASTStatementExpression node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTReferenceExpression node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTIfStatement node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTWhileStatement node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTForeachStatement node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTMapLiteral node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTMapEntry node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTMethod node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTArrayAccess node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTSizeMethod node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
-  public Object visit(ASTReference node, Object data) { node.dump(" ");return node.childrenAccept(this,
data); }
+
+    /** {@inheritDoc} */
+    public Object visit(SimpleNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTJexlScript node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTBlock node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTEmptyFunction node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTSizeFunction node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTIdentifier node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTExpression node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTAssignment node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTOrNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTAndNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTBitwiseOrNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTBitwiseXorNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTBitwiseAndNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTEQNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTNENode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTLTNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTGTNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTLENode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTGENode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTAddNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTSubtractNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTMulNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTDivNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTModNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTUnaryMinusNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTBitwiseComplNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTNotNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTNullLiteral node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTTrueNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTFalseNode node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTIntegerLiteral node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTFloatLiteral node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTStringLiteral node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTExpressionExpression node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTStatementExpression node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTReferenceExpression node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTIfStatement node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTWhileStatement node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTForeachStatement node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTMapLiteral node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTMapEntry node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTMethod node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTArrayAccess node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTSizeMethod node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
+
+    /** {@inheritDoc} */
+    public Object visit(ASTReference node, Object data) {
+        node.dump(" ");
+        return node.childrenAccept(this, data);
+    }
 }



Mime
View raw message