Author: dion
Date: Sun Apr 30 05:34:29 2006
New Revision: 398325

URL: http://svn.apache.org/viewcvs?rev=398325&view=rev
Log:
Checkstyle

Modified:
    
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
    
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTTrueNode.java
    
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
    
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTWhileStatement.java
    
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/Node.java

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java?rev=398325&r1=398324&r2=398325&view=diff
==============================================================================
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
 Sun Apr 30 05:34:29 2006
@@ -27,14 +27,26 @@
  * @version $Id$
  */
 public class ASTSubtractNode extends SimpleNode {
+    /**
+     * Create the node given an id.
+     * 
+     * @param id node id.
+     */
     public ASTSubtractNode(int id) {
         super(id);
     }
 
+    /**
+     * Create a node with the given parser and id.
+     * 
+     * @param p a parser.
+     * @param id node id.
+     */
     public ASTSubtractNode(Parser p, int id) {
         super(p, id);
     }
 
+    /** [EMAIL PROTECTED] */
     public Object value(JexlContext context) throws Exception {
         Object left = ((SimpleNode) jjtGetChild(0)).value(context);
         Object right = ((SimpleNode) jjtGetChild(1)).value(context);
@@ -79,7 +91,7 @@
 
     }
 
-    /** Accept the visitor. * */
+    /** [EMAIL PROTECTED] */
     public Object jjtAccept(ParserVisitor visitor, Object data) {
         return visitor.visit(this, data);
     }

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTTrueNode.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTTrueNode.java?rev=398325&r1=398324&r2=398325&view=diff
==============================================================================
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTTrueNode.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTTrueNode.java
 Sun Apr 30 05:34:29 2006
@@ -25,19 +25,31 @@
  * @version $Id$
  */
 public class ASTTrueNode extends SimpleNode {
+    /**
+     * Create the node given an id.
+     * 
+     * @param id node id.
+     */
     public ASTTrueNode(int id) {
         super(id);
     }
 
+    /**
+     * Create a node with the given parser and id.
+     * 
+     * @param p a parser.
+     * @param id node id.
+     */
     public ASTTrueNode(Parser p, int id) {
         super(p, id);
     }
 
-    /** Accept the visitor. * */
+    /** [EMAIL PROTECTED] */
     public Object jjtAccept(ParserVisitor visitor, Object data) {
         return visitor.visit(this, data);
     }
 
+    /** [EMAIL PROTECTED] */
     public Object value(JexlContext jc) throws Exception {
         return Boolean.TRUE;
     }

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java?rev=398325&r1=398324&r2=398325&view=diff
==============================================================================
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
 Sun Apr 30 05:34:29 2006
@@ -27,19 +27,31 @@
  * @version $Id$
  */
 public class ASTUnaryMinusNode extends SimpleNode {
+    /**
+     * Create the node given an id.
+     * 
+     * @param id node id.
+     */
     public ASTUnaryMinusNode(int id) {
         super(id);
     }
 
+    /**
+     * Create a node with the given parser and id.
+     * 
+     * @param p a parser.
+     * @param id node id.
+     */
     public ASTUnaryMinusNode(Parser p, int id) {
         super(p, id);
     }
 
-    /** Accept the visitor. * */
+    /** [EMAIL PROTECTED] */
     public Object jjtAccept(ParserVisitor visitor, Object data) {
         return visitor.visit(this, data);
     }
 
+    /** [EMAIL PROTECTED] */
     public Object value(JexlContext jc) throws Exception {
         Object val = ((SimpleNode) jjtGetChild(0)).value(jc);
 

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTWhileStatement.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTWhileStatement.java?rev=398325&r1=398324&r2=398325&view=diff
==============================================================================
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTWhileStatement.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTWhileStatement.java
 Sun Apr 30 05:34:29 2006
@@ -26,19 +26,31 @@
  * @since 1.1
  */
 public class ASTWhileStatement extends SimpleNode {
+    /**
+     * Create the node given an id.
+     * 
+     * @param id node id.
+     */
     public ASTWhileStatement(int id) {
         super(id);
     }
 
+    /**
+     * Create a node with the given parser and id.
+     * 
+     * @param p a parser.
+     * @param id node id.
+     */
     public ASTWhileStatement(Parser p, int id) {
         super(p, id);
     }
 
-    /** Accept the visitor. */
+    /** [EMAIL PROTECTED] */
     public Object jjtAccept(ParserVisitor visitor, Object data) {
         return visitor.visit(this, data);
     }
 
+    /** [EMAIL PROTECTED] */
     public Object value(JexlContext jc) throws Exception {
         Object result = null;
         /* first child is the expression */
@@ -50,5 +62,4 @@
 
         return result;
     }
-
 }

Modified: 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/Node.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/Node.java?rev=398325&r1=398324&r2=398325&view=diff
==============================================================================
--- 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/Node.java
 (original)
+++ 
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/Node.java
 Sun Apr 30 05:34:29 2006
@@ -17,11 +17,10 @@
 
 package org.apache.commons.jexl.parser;
 
-/*
+/**
  * All AST nodes must implement this interface. It provides basic machinery for
  * constructing the parent and child relationships between nodes.
  */
-
 public interface Node {
 
     /**
@@ -37,26 +36,43 @@
 
     /**
      * This pair of methods are used to inform the node of its parent.
+     * @param n the parent node.
      */
      void jjtSetParent(Node n);
 
+     /**
+      * Gets the parent node.
+      * @return the parent to this node.
+      */
      Node jjtGetParent();
 
     /**
      * This method tells the node to add its argument to the node's list of
      * children.
+     * @param n the child node to add
+     * @param i the index to add it at.
      */
      void jjtAddChild(Node n, int i);
 
     /**
      * This method returns a child node. The children are numbered from zero,
      * left to right.
+     * @param i the index of the child to get.
+     * @return the child at the given index.
      */
      Node jjtGetChild(int i);
 
-    /** Return the number of children the node has. */
+    /** 
+     * Gets the number of children the node has.
+     * @return the number of children the node has. 
+     */
      int jjtGetNumChildren();
 
-    /** Accept the visitor. * */
+    /**
+     *  Accept the visitor.
+     *  @param data arbitrary data.
+     *  @param visitor the visitor.
+     *  @return the result of the visit. 
+     */
      Object jjtAccept(ParserVisitor visitor, Object data);
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to