Modifier and Type | Method and Description |
---|---|
String |
TemplateRender.renderTemplate(org.aopalliance.intercept.MethodInvocation invocation,
String content) |
String |
TemplateRender.renderTemplate(TemplateContext context,
String content) |
Modifier and Type | Method and Description |
---|---|
Object |
StaticClassFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Modifier and Type | Method and Description |
---|---|
protected String |
DefaultCommandExecutor.render(String path,
Context context) |
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 |
---|---|
void |
TemplateEngine.addMacroCache(String macroName,
Macro macro)
往缓存中增加宏
|
ResourceLoader |
ResourceLoader.addTemplate(Template template)
添加模板对象
|
void |
TemplateEngine.addTemplateCache(String path,
Template template)
往缓存中增加模板
|
Template |
ResourceLoader.createTemplate(T templateMaterial)
创建并注册模板
|
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)
根据宏名查找要调用的宏
|
Macro |
TemplateEngine.findMacroCache(String macroName)
从缓存中查找宏
|
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)
返回宏库文件
|
String |
TemplateEngine.getResourceContent(String path)
获取指定路径资源的内容
|
String |
TemplateEngine.getResourceContent(String path,
String encode)
获取资源对应的文本
|
String |
ResourceLoader.getResourceContent(String path,
String encode)
获取资源对应的文本
|
StaticClassOperator |
TemplateEngine.getStaticClassOperator(String name)
获得静态类操作
|
Template |
ResourceLoader.getTemplate(String path)
返回模板对象,如果不存在则返回null
|
void |
TemplateEngine.registerMacro(Macro macro)
注册单个宏
|
void |
TemplateEngine.registerMacroLibrary(String path)
注册库文件中所有的宏
|
void |
TemplateEngine.registerMacroLibrary(Template template)
注册模板文件中所有的宏
|
void |
TemplateEngine.registerStaticClassOperator(StaticClassOperator operator)
注册静态类操作
|
void |
TemplateEngine.removeMacroCache(String macroName,
String absolutePath)
从缓存中删除宏
|
void |
TemplateEngine.removeTemplate(String path)
根据路径卸载模板
|
void |
TemplateEngine.removeTemplateCache(String path,
String absolutePath)
从缓存中删除模板
|
void |
Template.render() |
void |
Template.render(TemplateContext context) |
void |
Template.render(TemplateContext context,
OutputStream outputStream)
进行渲染
|
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(String path)
采用没有上下文,控制台输出方式进行渲染,如果有布局会同时渲染布局
|
String |
TemplateRender.renderTemplate(String path,
TemplateContext context)
根据路径渲染一个模板文件,如果有布局会同时渲染布局,返回字符串
|
void |
TemplateEngine.renderTemplate(String path,
TemplateContext context,
OutputStream outputStream)
根据路径渲染一个模板文件,如果有布局会同时渲染布局
|
void |
TemplateRender.renderTemplate(String path,
TemplateContext context,
OutputStream outputStream)
根据路径渲染一个模板文件,如果有布局会同时渲染布局
|
void |
TemplateEngine.renderTemplate(Template template)
采用没有上下文,控制台输出方式进行渲染,主要用于测试
|
void |
TemplateEngine.renderTemplate(Template template,
TemplateContext context,
OutputStream outputStream)
直接渲染一个模板,不会应用布局
|
String |
TemplateRender.renderTemplateContent(String content,
TemplateContext context)
根据文本内容渲染,返回字符串
|
void |
TemplateRender.renderTemplateContent(String content,
TemplateContext context,
OutputStream outputStream)
根据文本内容渲染
|
String |
TemplateRender.renderTemplateWithOutLayout(String path,
TemplateContext context)
根据路径渲染一个模板文件,但不会渲染布局,返回字符串
|
void |
TemplateEngine.renderTemplateWithOutLayout(String path,
TemplateContext context,
OutputStream outputStream)
根据路径渲染一个模板文件,但不会渲染布局
|
void |
TemplateRender.renderTemplateWithOutLayout(String path,
TemplateContext context,
OutputStream outputStream)
根据路径渲染一个模板文件,但不会渲染布局
|
void |
TemplateEngine.write(OutputStream outputStream,
Object data) |
Modifier and Type | Method and Description |
---|---|
static void |
TinyTemplateExecutor.main(String[] args) |
Modifier and Type | Method and Description |
---|---|
protected TemplateException |
AbstractBindTemplateFunction.notSupported(Object... parameters) |
protected TemplateException |
AbstractTemplateFunction.notSupported(Object[] parameters) |
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) |
protected TemplateException |
AbstractBindTemplateFunction.notSupported(Object... parameters) |
protected TemplateException |
AbstractTemplateFunction.notSupported(Object[] parameters) |
Modifier and Type | Method and Description |
---|---|
Object |
AbstractEscapeFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
protected String |
EscapeHtmlFunction.replace(String content) |
protected String |
AbstractEscapeFunction.replace(String content)
动态替换
|
protected String |
UnEscapeHtmlFunction.replace(String content) |
Modifier and Type | Method and Description |
---|---|
Object |
EvaluateExpression.evaluate(TemplateContext context) |
Object |
TemplateEngineDefault.executeFunction(Template Template,
TemplateContext context,
String functionName,
Object... parameters) |
Template |
TemplateEngineDefault.findLayout(String path) |
Macro |
TemplateEngineDefault.findMacro(Object macroNameObject,
Template template,
TemplateContext context) |
Template |
TemplateEngineDefault.findTemplate(String path) |
String |
TemplateEngineDefault.getResourceContent(String path) |
String |
TemplateEngineDefault.getResourceContent(String path,
String encode) |
StaticClassOperator |
TemplateEngineDefault.getStaticClassOperator(String name) |
void |
TemplateEngineDefault.registerMacro(Macro macro) |
void |
TemplateEngineDefault.registerMacroLibrary(String path) |
void |
TemplateEngineDefault.registerMacroLibrary(Template template) |
void |
TemplateEngineDefault.registerStaticClassOperator(StaticClassOperator operator) |
void |
TemplateEngineDefault.removeTemplate(String path)
卸载指定路径的全部模板
|
void |
AbstractTemplate.render() |
void |
AbstractTemplate.render(TemplateContext context) |
void |
AbstractTemplate.render(TemplateContext context,
OutputStream outputStream) |
void |
AbstractMacro.render(Template template,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream) |
protected abstract void |
AbstractTemplate.renderContent(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(String path) |
String |
TemplateRenderDefault.renderTemplate(String path,
TemplateContext context) |
void |
TemplateRenderDefault.renderTemplate(String path,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.renderTemplate(String path,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.renderTemplate(Template Template) |
void |
TemplateEngineDefault.renderTemplate(Template template,
TemplateContext context,
OutputStream outputStream) |
String |
TemplateRenderDefault.renderTemplateContent(String content,
TemplateContext context) |
void |
TemplateRenderDefault.renderTemplateContent(String content,
TemplateContext context,
OutputStream outputStream) |
String |
TemplateRenderDefault.renderTemplateWithOutLayout(String path,
TemplateContext context) |
void |
TemplateRenderDefault.renderTemplateWithOutLayout(String path,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.renderTemplateWithOutLayout(String path,
TemplateContext context,
OutputStream outputStream) |
void |
TemplateEngineDefault.write(OutputStream outputStream,
Object data) |
Modifier and Type | Class and Description |
---|---|
class |
MacroException
宏异常,解决宏和页面报错的提示路径问题
|
Modifier and Type | Method and Description |
---|---|
Object |
EvaluateExpressionImpl.evaluate(TemplateContext context) |
byte[] |
TemplateFromContext.getTerminalNodeBytes(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateFromContext templateFromContext,
int left,
int right) |
TinyTemplateParser.TemplateContext |
TemplateInterpreter.parserTemplateTree(String sourceName,
String templateString,
boolean throwLexerError) |
void |
MacroFromContext.render(Template templateFromContext,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream) |
protected void |
TemplateFromContext.renderContent(TemplateContext context,
OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
Object |
EscapeTextNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Modifier and Type | Class and Description |
---|---|
class |
ForBreakException
Created by luog on 15/7/17.
|
class |
ForContinueException
Created by luog on 15/7/17.
|
Modifier and Type | Method and Description |
---|---|
Object |
TextCdataNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
TextPlainNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Modifier and Type | Method and Description |
---|---|
TemplateException |
TinyTemplateErrorListener.getTemplateException()
获取第一个TemplateException异常
|
Modifier and Type | Method and Description |
---|---|
List<TemplateException> |
TinyTemplateErrorListener.getTemplateExceptions()
获取全部TemplateException异常
|
Modifier and Type | Method and Description |
---|---|
ResourceLoader |
AbstractResourceLoader.addTemplate(Template template) |
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) |
String |
FileObjectResourceLoader.getResourceContent(String path,
String encode) |
Template |
AbstractResourceLoader.getTemplate(String path) |
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 |
---|---|
static Object |
TemplateUtil.callMethod(Template template,
TemplateContext context,
Object object,
String methodName,
Object... parameters)
进行方法调用
|
static Object |
OperationUtil.executeOperation(String op,
Object... parameters) |
static Object |
OperationUtil.executeOperationWithContext(TemplateContext context,
String op,
String name,
Object value) |
static Object |
TemplateUtil.getArrayValue(Object object,
Object indexObject) |
static Object |
TemplateUtil.getAttribute(Object object,
Object name)
获取属性
|
static Class<?>[] |
TemplateUtil.getParameterTypes(Class clazz,
String methodName) |
static Object |
TemplateUtil.getSafeArrayValue(Object object,
Object indexObject)
访问数组类型的内容
|
Object |
Operator.operation(Object... parameter) |
Object |
OperatorWithContext.operation(TemplateContext context,
String name,
Object value) |
static Object |
TemplateUtil.safeCallMethod(Template template,
TemplateContext context,
Object object,
String methodName,
Object... parameters)
安全方法调用
|
static Object |
TemplateUtil.sp(Object object,
Object name) |
Modifier and Type | Method and Description |
---|---|
Object |
TwoConvertOperator.operation(Object... parameter) |
Object |
SingleOperator.operation(Object... parameter) |
Object |
TwoOperator.operation(Object... parameter) |
protected Object |
ComplementOperator.operation(Object var) |
protected Object |
LeftLiteralOperator.operation(Object var) |
protected Object |
LeftNotOperator.operation(Object var) |
protected Object |
LeftSubtractOperator.operation(Object var) |
protected abstract Object |
SingleOperator.operation(Object var) |
Object |
LeftSubtractSubtractOperator.operation(TemplateContext context,
String name,
Object value) |
Object |
LeftPlusPlusOperator.operation(TemplateContext context,
String name,
Object value) |
Object |
RightPlusPlusOperator.operation(TemplateContext context,
String name,
Object value) |
Object |
RightSubtractSubtractOperator.operation(TemplateContext context,
String name,
Object value) |
Modifier and Type | Method and Description |
---|---|
protected Field |
TemplateDocumentCreator.renderAbstarctRule(TemplateContext templateContext) |
protected Field |
TemplateDocumentCreator.renderId(TemplateContext templateContext) |
protected Field |
TemplateDocumentCreator.renderTitle(TemplateContext templateContext) |
protected Field |
TemplateDocumentCreator.renderType(TemplateContext templateContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
TinyServlet.mergeTemplate(String path,
TemplateContext context,
javax.servlet.http.HttpServletResponse response) |
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.