99100101102103104105
* 字符串 * @throws TemplateException * 模板生成过程中产生错误 */ public Template(Engine engine, String text) throws TemplateException { this(engine, null, new StringReader(text), true); }
2930313233343536
/** 需要回写保存的参数名称 */ private String[] names; public void init(String text, String... objects) throws Exception { node = engine.parse(new StringReader(text), ""); names = objects; }