public class BasicTemplate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicTemplate.Context<T> |
class |
BasicTemplate.ContextBuilder<T> |
static class |
BasicTemplate.EasyTemplate |
| Constructor and Description |
|---|
BasicTemplate(BasicTemplate src) |
BasicTemplate(String template)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
BasicTemplate |
clone() |
<T> BasicTemplate.ContextBuilder<T> |
context(Class<T> ctx) |
String |
eval(Object context) |
xyz.cofe.collection.Func0<String> |
evalAndPrint(xyz.cofe.collection.Func1<String,String> evalCode) |
xyz.cofe.collection.Func0<String> |
evalAndPrint(xyz.cofe.collection.Func1<String,String> evalText,
xyz.cofe.collection.Func1<String,String> evalCode) |
AstNode |
getAst() |
TemplateParser |
getParser() |
String |
getSource()
Исходный текст шаблона
|
static BasicTemplate.EasyTemplate |
template(String template) |
public BasicTemplate(String template)
template - шаблон сообщенияBasicTemplatepublic BasicTemplate(BasicTemplate src)
public String getSource()
public AstNode getAst()
public TemplateParser getParser()
public xyz.cofe.collection.Func0<String> evalAndPrint(xyz.cofe.collection.Func1<String,String> evalCode)
public xyz.cofe.collection.Func0<String> evalAndPrint(xyz.cofe.collection.Func1<String,String> evalText, xyz.cofe.collection.Func1<String,String> evalCode)
public BasicTemplate clone()
public <T> BasicTemplate.ContextBuilder<T> context(Class<T> ctx)
public static BasicTemplate.EasyTemplate template(String template)
Copyright © 2017. All rights reserved.