15101511151215131514151515161517151815191520
Expr expr = _gen.genExpr(value); if (expr.isConstant()) { try { if (expr.evalObject(null) != null) { } else if (Character.class.isAssignableFrom(type)) { // jsp/18s0 return "new Character((char) 0)"; }
16041605160616071608160916101611161216131614
return "java.math.BigDecimal.ZERO"; else return "new java.math.BigDecimal(\"" + v + "\")"; } else if (Object.class.equals(type)) { Object cValue = expr.evalObject(null); String result = generateObject(cValue); if (result != null) return result;
16121613161416151616161716181619162016211622
if (result != null) return result; } else { Object cValue = expr.evalObject(null); // jsp/184t if ("".equals(cValue)) return "null"; }
14841485148614871488148914901491149214931494
15781579158015811582158315841585158615871588
15861587158815891590159115921593159415951596
111112113114115116117118119120121
string = rewritePathString(string); Expr expr = new ELParser(env, string).parse(); Object obj = expr.evalObject(env); if (obj == null) throw new NullPointerException(L.l("Path '{0}' evaluated to null.", string)); if (obj instanceof Path)
112113114115116117118119120121122
string = rewritePathString(string); Expr expr = new ELParser(env, string).parse(); Object obj = expr.evalObject(env); if (obj instanceof Path) return (Path) obj; String value = Expr.toString(obj, env);
101102103104105106107108109110111
// problems with mediawiki try { Expr expr = com.caucho.xpath.XPath.parseExpr(pattern); return (NodeList) expr.evalObject(node); } catch (Exception e) { throw new QuercusModuleException(e); } }