Package | Description |
---|---|
org.tinygroup.template | |
org.tinygroup.template.impl | |
org.tinygroup.template.interpret |
Modifier and Type | Method and Description |
---|---|
Macro |
TemplateEngine.findMacro(Object macroName,
Template template,
TemplateContext context)
根据宏名查找要调用的宏
|
Macro |
TemplateEngine.findMacroCache(String macroName)
从缓存中查找宏
|
Macro |
TemplateExceptionInfo.getMacroInfo()
获得宏信息
|
Modifier and Type | Method and Description |
---|---|
Map<String,Macro> |
Template.getMacroMap()
返回宏的内容
|
Modifier and Type | Method and Description |
---|---|
void |
TemplateEngine.addMacroCache(String macroName,
Macro macro)
往缓存中增加宏
|
void |
TemplateEngine.registerMacro(Macro macro)
注册单个宏
|
void |
TemplateEngine.renderMacro(Macro macro,
Template template,
TemplateContext context,
OutputStream outputStream)
渲染指定的宏
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBlockMacro
抽象宏
Created by luoguo on 2014/6/6.
|
class |
AbstractMacro
抽象宏
Created by luoguo on 2014/6/6.
|
Modifier and Type | Method and Description |
---|---|
Macro |
TemplateEngineDefault.findMacro(Object macroNameObject,
Template template,
TemplateContext context) |
Macro |
TemplateEngineDefault.findMacroCache(String macroName) |
Macro |
AbstractMacro.getBodyContentMacro() |
protected Macro |
AbstractMacro.getMacro(TemplateContext $context) |
Modifier and Type | Method and Description |
---|---|
Map<String,Map<String,Macro>> |
TemplateEngineDefault.getMacroCache() |
Map<String,Macro> |
AbstractTemplate.getMacroMap() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractTemplate.addMacro(Macro macro) |
void |
TemplateEngineDefault.addMacroCache(String macroName,
Macro macro) |
void |
TemplateEngineDefault.registerMacro(Macro macro) |
void |
TemplateEngineDefault.renderMacro(Macro macro,
Template Template,
TemplateContext context,
OutputStream outputStream) |
Constructor and Description |
---|
AbstractMacro(String name,
Macro bodyContentMacro) |
Modifier and Type | Class and Description |
---|---|
class |
MacroFromContext
Created by luog on 15/7/19.
|
Modifier and Type | Method and Description |
---|---|
Macro |
MacroException.getMacro()
得到宏
|
Macro |
MacroExceptionInfo.getMacroInfo() |
Macro |
RecognizerExceptionInfo.getMacroInfo() |
Macro |
DefaultExceptionInfo.getMacroInfo() |
Constructor and Description |
---|
MacroException(Macro macro,
Exception e) |
MacroExceptionInfo(org.antlr.v4.runtime.ParserRuleContext parserRuleContext,
String reason,
String fileInfo,
Macro macro) |
Copyright © 2006–2018 TinyGroup. All rights reserved.