Author: dion
Date: Wed Apr 26 16:45:21 2006
New Revision: 397342
URL: http://svn.apache.org/viewcvs?rev=397342&view=rev
Log:
Checkstyle
Modified:
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAddNode.java
Modified:
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAddNode.java
URL:
http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAddNode.java?rev=397342&r1=397341&r2=397342&view=diff
==============================================================================
---
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAddNode.java
(original)
+++
jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAddNode.java
Wed Apr 26 16:45:21 2006
@@ -26,20 +26,41 @@
* @version $Id$
*/
public class ASTAddNode extends SimpleNode {
+ /**
+ * Create an add node with the given id.
+ * @param id node id.
+ */
public ASTAddNode(int id) {
super(id);
}
+ /**
+ * Create an add node with the given parser and id.
+ * @param p a parser.
+ * @param id node ide.
+ */
public ASTAddNode(Parser p, int id) {
super(p, id);
}
- /** Accept the visitor. **/
+ /**
+ * Accept the visitor.
+ * @param visitor a [EMAIL PROTECTED] ParserVisitor}.
+ * @param data data to be passed along to the visitor.
+ * @return the value from visiting.
+ * @see ParserVisitor#visit(ASTAddNode, Object)
+ */
public Object jjtAccept(ParserVisitor visitor, Object data) {
return visitor.visit(this, data);
}
+ /**
+ * Gets the value of this node.
+ * @param context the context to retrieve values from.
+ * @return the result of addition.
+ * @throws Exception when evaluating the operands fails.
+ */
public Object value(JexlContext context) throws Exception {
Object left = ((SimpleNode) jjtGetChild(0)).value(context);
Object right = ((SimpleNode) jjtGetChild(1)).value(context);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]