1 2 3 package org.apache.el.parser; 4 5 import javax.el.ELException; 6 7 import org.apache.el.lang.EvaluationContext; 8 9 10 14 public final class AstCompositeExpression extends SimpleNode { 15 16 public AstCompositeExpression(int id) { 17 super(id); 18 } 19 20 public Class getType(EvaluationContext ctx) 21 throws ELException { 22 return String .class; 23 } 24 25 public Object getValue(EvaluationContext ctx) 26 throws ELException { 27 StringBuffer sb = new StringBuffer (16); 28 Object 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 |