01: /* Generated By:JJTree: Do not edit this line. AstCompositeExpression.java */
02:
03: package org.apache.el.parser;
04:
05: import javax.el.ELException;
06:
07: import org.apache.el.lang.EvaluationContext;
08:
09: /**
10: * @author Jacob Hookom [jacob@hookom.net]
11: * @version $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $
12: */
13: public final class AstCompositeExpression extends SimpleNode {
14:
15: public AstCompositeExpression(int id) {
16: super (id);
17: }
18:
19: public Class getType(EvaluationContext ctx) throws ELException {
20: return String.class;
21: }
22:
23: public Object getValue(EvaluationContext ctx) throws ELException {
24: StringBuffer sb = new StringBuffer(16);
25: Object obj = null;
26: if (this .children != null) {
27: for (int i = 0; i < this.children.length; i++) {
28: obj = this.children[i].getValue(ctx);
29: if (obj != null) {
30: sb.append(obj);
31: }
32: }
33: }
34: return sb.toString();
35: }
36: }
|