Modifier and Type | Method and Description |
---|---|
TemplateContext |
TemplateRender.assemblyContext(org.aopalliance.intercept.MethodInvocation invocation) |
Modifier and Type | Method and Description |
---|---|
Object |
TemplateRender.getParamValue(TemplateContext context,
String key) |
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 |
---|---|
Object |
QueryTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Object |
FillTemplateFunction.execute(Template template,
TemplateContext context,
Object... parameters) |
Modifier and Type | Class and Description |
---|---|
class |
SpringTemplateContext |
Modifier and Type | Method and Description |
---|---|
TemplateContext |
TemplateContextOperator.getTemplateContext()
返回上下文
|
Modifier and Type | Method and Description |
---|---|
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)
根据宏名查找要调用的宏
|
String |
I18nVisitor.getI18nMessage(TemplateContext context,
String key)
返回国际化资源
|
Locale |
I18nVisitor.getLocale(TemplateContext context)
获取当前位置
|
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)
渲染宏
|
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,
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)
根据路径渲染一个模板文件,但不会渲染布局
|
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 |
TemplateContextDefault
Created by luoguo on 2014/6/6.
|
Modifier and Type | Method and Description |
---|---|
TemplateContext |
AbstractTemplate.getTemplateContext() |
TemplateContext |
TemplateEngineDefault.getTemplateContext() |
Modifier and Type | Method and Description |
---|---|
Object |
EvaluateExpression.evaluate(TemplateContext context) |
Object |
TemplateEngineDefault.executeFunction(Template Template,
TemplateContext context,
String functionName,
Object... parameters) |
Macro |
TemplateEngineDefault.findMacro(Object macroNameObject,
Template template,
TemplateContext context) |
protected Macro |
AbstractMacro.getMacro(TemplateContext $context) |
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) |
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,
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) |
Modifier and Type | Method and Description |
---|---|
Object |
EvaluateExpressionImpl.evaluate(TemplateContext context) |
void |
TemplateInterpreter.interpret(TemplateEngineDefault engine,
TemplateFromContext templateFromContext,
String templateString,
String sourceName,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream,
String fileName) |
void |
TemplateInterpreter.interpret(TemplateEngineDefault engine,
TemplateFromContext templateFromContext,
TinyTemplateParser.TemplateContext templateParseTree,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream,
String fileName) |
Object |
TemplateInterpreter.interpretTree(TemplateEngineDefault engine,
TemplateFromContext templateFromContext,
org.antlr.v4.runtime.tree.ParseTree tree,
TemplateContext pageContext,
TemplateContext context,
OutputStream outputStream,
String fileName) |
Object |
ContextProcessor.process(TemplateInterpreter interpreter,
TemplateFromContext templateFromContext,
T parseTree,
TemplateContext pageContext,
TemplateContext context,
TemplateEngineDefault engine,
OutputStream outputStream,
String fileName) |
Object |
TerminalNodeProcessor.process(T parseTree,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
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 |
IntegerNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
IntegerOctNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
AbstractStringNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
TextCdataNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
NullNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
FloatProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
FalseNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
TrueNodeProcessor.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) |
Object |
OtherTerminalNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Object |
IntegerHexNodeProcessor.process(org.antlr.v4.runtime.tree.TerminalNode terminalNode,
TemplateContext context,
OutputStream outputStream,
TemplateFromContext templateFromContext) |
Modifier and Type | Method and Description |
---|---|
static Object |
TemplateUtil.callMethod(Template template,
TemplateContext context,
Object object,
String methodName,
Object... parameters)
进行方法调用
|
static void |
TemplateUtil.dent(TemplateContext context) |
static Object |
OperationUtil.executeOperationWithContext(TemplateContext context,
String op,
String name,
Object value) |
static String |
TemplateUtil.getBlanks(TemplateContext context) |
static String |
TemplateUtil.getI18n(I18nVisitor i18nVistor,
TemplateContext context,
String key)
获取
|
static void |
TemplateUtil.indent(TemplateContext context) |
Object |
OperatorWithContext.operation(TemplateContext context,
String name,
Object value) |
static Object |
TemplateUtil.safeCallMethod(Template template,
TemplateContext context,
Object object,
String methodName,
Object... parameters)
安全方法调用
|
Modifier and Type | Method and Description |
---|---|
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 Locale |
ContextLocaleI18nVisitor.getContextLocale(TemplateContext context) |
String |
AbstractI18nVisitor.getI18nMessage(TemplateContext context,
String key) |
Locale |
ThreadLocaleI18nVisitor.getLocale(TemplateContext context) |
Locale |
DefaultLocaleI18nVisitor.getLocale(TemplateContext context) |
Locale |
ContextLocaleI18nVisitor.getLocale(TemplateContext context) |
Locale |
SystemLocaleI18nVisitor.getLocale(TemplateContext context) |
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 TemplateContext |
TinyServlet.createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
protected String |
TinyServlet.handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
TemplateContext ctx) |
protected String |
TinyServlet.handleRequest(TemplateContext ctx) |
protected void |
TinyServlet.mergeTemplate(String path,
TemplateContext context,
javax.servlet.http.HttpServletResponse response) |
protected void |
TinyServlet.requestCleanup(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
TemplateContext context) |
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) |
Modifier and Type | Class and Description |
---|---|
class |
RequestTemplateContext
request包装的上下文对象
|
class |
TinyWebTemplateContext
tinywebcontext包装的模板上下文
|
Copyright © 2006–2018 TinyGroup. All rights reserved.