@Test public void testFormatByMethod() { String tpl = "${a2}-${a1}"; Map<String, Object> args = new HashMap<String, Object>(); T a1 = new T(); a1.setA1("name"); args.put("a1", a1); args.put("a2", "a2"); Assert.assertEquals("name", FreeMarkerUtils.format(tpl, args)); }
public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); static String format(String tpl, Map<String, Object> args); static String format(String tpl, Object args); }
FreeMarkerUtils { public static String format(String tpl, Map<String, Object> args) { return format(tpl, (Object) args); } private  FreeMarkerUtils(); static String format(String tpl, Map<String, Object> args); static String format(String tpl, Object args);  }