Modifier and Type | Method and Description |
---|---|
Object |
StaticClassFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Modifier and Type | Method and Description |
---|---|
Object |
QueryTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
FillTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Modifier and Type | Method and Description |
---|---|
Template |
ResourceLoader.createTemplate(T templateMaterial)
创建并注册模板
|
Template |
TemplateEngine.findTemplate(String path)
根据路径查找宏
|
Template |
TemplateEngine.findTemplateCache(String path)
从缓存中查找模板
|
Template |
TemplateEngine.findTemplateCache(String path,
String absolutePath)
从缓存中查找模板
|
Template |
ResourceLoader.getLayout(String path)
返回布局对象
|
Template |
ResourceLoader.getMacroLibrary(String path)
返回宏库文件
|
Template |
ResourceLoader.getTemplate(String path)
返回模板对象,如果不存在则返回null
|
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
ResourceLoader.addTemplate(Template template)
添加模板对象
|
void |
TemplateEngine.addTemplateCache(String path,
Template template)
往缓存中增加模板
|
Object |
TemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters)
执行函数体
|
Object |
TemplateEngine.executeFunction(Template template,
TemplateContext context,
String functionName,
Object... parameters)
执行方法
|
Macro |
TemplateEngine.findMacro(Object macroName,
Template template,
TemplateContext context)
根据宏名查找要调用的宏
|
void |
TemplateEngine.registerMacroLibrary(Template template)
注册模板文件中所有的宏
|
void |
Macro.render(Template template,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream)
进行渲染
|
void |
TemplateEngine.renderMacro(Macro macro,
Template template,
TemplateContext context,
OutputStream outputStream)
渲染指定的宏
|
void |
TemplateEngine.renderMacro(String macroName,
Template template,
TemplateContext context,
OutputStream outputStream)
渲染宏
|
void |
TemplateEngine.renderTemplate(Template template)
采用没有上下文,控制台输出方式进行渲染,主要用于测试
|
void |
TemplateEngine.renderTemplate(Template template,
TemplateContext context,
OutputStream outputStream)
直接渲染一个模板,不会应用布局
|
Modifier and Type | Method and Description |
---|---|
Object |
EvaluateTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ToLongFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
StaticFunctionWrapper.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ParseTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
RangeTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
I18nFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
RenderLayerFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ToDoubleFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
RandomFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ToFloatFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ToIntFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
FormatDateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
CallMacroFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ToBoolFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
GetResourceContentFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
UrlEncodeFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
TodayFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
ExtendMapFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
FunctionWrapper.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
FormatterTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
GetFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
UrlDecodeFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
InstanceOfTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Modifier and Type | Method and Description |
---|---|
Object |
AbstractEscapeFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTemplate
Created by luoguo on 2014/6/6.
|
Modifier and Type | Method and Description |
---|---|
Template |
TemplateEngineDefault.findLayout(String path) |
Template |
TemplateEngineDefault.findTemplate(String path) |
Template |
TemplateEngineDefault.findTemplateCache(String path) |
Template |
TemplateEngineDefault.findTemplateCache(String path,
String absolutePath) |
Modifier and Type | Method and Description |
---|---|
void |
TemplateEngineDefault.addTemplateCache(String path,
Template template) |
Object |
TemplateEngineDefault.executeFunction(Template Template,
TemplateContext context,
String functionName,
Object... parameters) |
Macro |
TemplateEngineDefault.findMacro(Object macroNameObject,
Template template,
TemplateContext context) |
void |
TemplateEngineDefault.registerMacroLibrary(Template template) |
void |
AbstractMacro.render(Template template,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream) |
protected abstract void |
AbstractBlockMacro.renderFooter(Template template,
TemplateContext context,
OutputStream outputStream) |
protected abstract void |
AbstractBlockMacro.renderHeader(Template template,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.renderMacro(Macro macro,
Template Template,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.renderMacro(String macroName,
Template Template,
TemplateContext context,
OutputStream outputStream) |
protected void |
AbstractBlockMacro.renderMacro(Template template,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream) |
protected abstract void |
AbstractMacro.renderMacro(Template template,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.renderTemplate(Template Template) |
void |
TemplateEngineDefault.renderTemplate(Template template,
TemplateContext context,
OutputStream outputStream) |
Modifier and Type | Class and Description |
---|---|
class |
TemplateFromContext
Created by luog on 15/7/19.
|
Modifier and Type | Method and Description |
---|---|
void |
MacroFromContext.render(Template templateFromContext,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
Template |
StringResourceLoader.createLayout(String templateMaterial) |
Template |
StringResourceLoader.createMacroLibrary(String templateMaterial) |
Template |
FileObjectResourceLoader.createTemplate(FileObject fileObject) |
Template |
StringResourceLoader.createTemplate(String stringTemplateMaterial)
根据字符串创建模板(不缓存)
|
Template |
AbstractResourceLoader.getLayout(String path) |
Template |
AbstractResourceLoader.getMacroLibrary(String path) |
Template |
AbstractResourceLoader.getTemplate(String path) |
static Template |
TemplateLoadUtil.loadComponent(TemplateEngineDefault engine,
FileObject fileObject) |
static Template |
TemplateLoadUtil.loadComponent(TemplateEngineDefault engine,
String path,
String absolutePath,
long lastModifiedTime,
String content) |
protected Template |
StringResourceLoader.loadLayout(String path) |
protected Template |
StringResourceLoader.loadMacroLibrary(String path) |
Template |
StringResourceLoader.loadTemplate(String stringTemplateMaterial)
根据字符串创建并缓存模板
|
protected Template |
StringResourceLoader.loadTemplateItem(String path)
字符串内存型的,不支持根据路径载入
|
protected abstract Template |
AbstractResourceLoader.loadTemplateItem(String path) |
protected Template |
FileObjectResourceLoader.loadTemplateItem(String path) |
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
AbstractResourceLoader.addTemplate(Template template) |
Modifier and Type | Method and Description |
---|---|
static Object |
TemplateUtil.callMethod(Template template,
TemplateContext context,
Object object,
String methodName,
Object... parameters)
进行方法调用
|
static Object |
TemplateUtil.safeCallMethod(Template template,
TemplateContext context,
Object object,
String methodName,
Object... parameters)
安全方法调用
|
Modifier and Type | Method and Description |
---|---|
Object |
GetChildrenFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
GetParentsFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
GetUIComponentFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
GetUIComponentListFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Copyright © 2006–2018 TinyGroup. All rights reserved.