KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > el > parser > AstCompositeExpression


1 /* Generated By:JJTree: Do not edit this line. AstCompositeExpression.java */
2
3 package org.apache.el.parser;
4
5 import javax.el.ELException;
6
7 import org.apache.el.lang.EvaluationContext;
8
9
10 /**
11  * @author Jacob Hookom [jacob@hookom.net]
12  * @version $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $
13  */

14 public final class AstCompositeExpression extends SimpleNode {
15
16     public AstCompositeExpression(int id) {
17         super(id);
18     }
19
20     public Class JavaDoc getType(EvaluationContext ctx)
21             throws ELException {
22         return String JavaDoc.class;
23     }
24
25     public Object JavaDoc getValue(EvaluationContext ctx)
26             throws ELException {
27         StringBuffer JavaDoc sb = new StringBuffer JavaDoc(16);
28         Object JavaDoc obj = null;
29         if (this.children != null) {
30             for (int i = 0; i < this.children.length; i++) {
31                 obj = this.children[i].getValue(ctx);
32                 if (obj != null) {
33                     sb.append(obj);
34                 }
35             }
36         }
37         return sb.toString();
38     }
39 }
40
Popular Tags