return new Expression.Holder("", true); return new Expression.Holder(exp); return new Expression.Holder(exp); if (m.find()) { model.put(m.group(1), null); return new Expression.Holder(m.group(1)); Class clazz = findClass(m.group().substring(4), imports); if (clazz != null) { thatObject = new Expression.Holder(clazz); exp = exp.substring(m.end()); methodName = CONSTRUCTOR; Matcher m = LIST.matcher(exp); if (m.find()) { thatObject = new Expression.Holder(m.group(1)); exp = exp.substring(m.group(1).length()); thatObject = new Expression.Holder(clazz); exp = exp.substring(m.end()); break; thatObject = new Expression.Holder(parts.remove(0)); continue;
return new Expression.Holder("", true); return new Expression.Holder(exp); return new Expression.Holder(exp); if (m.find()) { model.put(m.group(1), null); return new Expression.Holder(m.group(1)); Class clazz = findClass(m.group().substring(4), imports); if (clazz != null) { thatObject = new Expression.Holder(clazz); exp = exp.substring(m.end()); methodName = CONSTRUCTOR; Matcher m = LIST.matcher(exp); if (m.find()) { thatObject = new Expression.Holder(m.group(1)); exp = exp.substring(m.group(1).length()); thatObject = new Expression.Holder(clazz); exp = exp.substring(m.end()); break; thatObject = new Expression.Holder(parts.remove(0)); continue;
public TemplateBuilder append(String s) { parts.add(new Holder(s, true)); return this; }
public TemplateBuilder append(String s) { parts.add(new Holder(s, true)); return this; }
public Holder(String exp) { this.exp = exp; Object result = parse(exp); if (result != null) { hardcoded = true; this.result = result; } }
public Holder(String exp) { this.exp = exp; Object result = parse(exp); if (result != null) { hardcoded = true; this.result = result; } }