1 23 24 package com.sun.el.parser; 25 26 import javax.el.ELException; 27 28 import com.sun.el.lang.EvaluationContext; 29 30 34 public final class AstCompositeExpression extends SimpleNode { 35 36 public AstCompositeExpression(int id) { 37 super(id); 38 } 39 40 public Class getType(EvaluationContext ctx) 41 throws ELException { 42 return String .class; 43 } 44 45 public Object getValue(EvaluationContext ctx) 46 throws ELException { 47 StringBuffer sb = new StringBuffer (16); 48 Object obj = null; 49 if (this.children != null) { 50 for (int i = 0; i < this.children.length; i++) { 51 obj = this.children[i].getValue(ctx); 52 if (obj != null) { 53 sb.append(obj); 54 } 55 } 56 } 57 return sb.toString(); 58 } 59 } 60 | Popular Tags |