1 28 29 package com.caucho.config.types; 30 31 import com.caucho.el.EL; 32 import com.caucho.el.ELParser; 33 import com.caucho.el.Expr; 34 import com.caucho.util.L10N; 35 36 import javax.el.ELContext; 37 import javax.el.ELException; 38 39 42 public class StringTypeBuilder { 43 static L10N L = new L10N(StringTypeBuilder.class); 44 45 public static String evalString(String string) 46 throws ELException 47 { 48 return evalString(string, EL.getEnvironment()); 49 } 50 51 public static String evalString(String string, ELContext env) 52 throws ELException 53 { 54 Expr expr = new ELParser(env, string).parse(); 55 56 return expr.evalString(env); 57 } 58 59 public void append(char ch) 60 { 61 } 62 } 63 | Popular Tags |