commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r391008 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
Date Mon, 03 Apr 2006 11:25:02 GMT
Author: dion
Date: Mon Apr  3 04:24:57 2006
New Revision: 391008

URL: http://svn.apache.org/viewcvs?rev=391008&view=rev
Log:
Add value(context) method to support scripts

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java?rev=391008&r1=391007&r2=391008&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
Mon Apr  3 04:24:57 2006
@@ -2,8 +2,11 @@
 
 package org.apache.commons.jexl.parser;
 
+import org.apache.commons.jexl.JexlContext;
+
 /**
  * Top of the syntax tree - parsed Jexl code.
+ * @since 1.1
  */
 public class ASTJexlScript extends SimpleNode {
   public ASTJexlScript(int id) {
@@ -18,5 +21,11 @@
   /** Accept the visitor. **/
   public Object jjtAccept(ParserVisitor visitor, Object data) {
     return visitor.visit(this, data);
+  }
+  
+  public Object value(JexlContext jc) throws Exception
+  {
+      SimpleNode child = (SimpleNode)jjtGetChild(0);
+      return child.value(jc);
   }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message