play.templates
类 GroovyTemplate

java.lang.Object
  继承者 play.templates.Template
      继承者 play.templates.BaseTemplate
          继承者 play.templates.GroovyTemplate

public class GroovyTemplate
extends BaseTemplate

A template


嵌套类摘要
static class GroovyTemplate.ExecutableTemplate
          Groovy template
static class GroovyTemplate.TClassLoader
           
 
从类 play.templates.BaseTemplate 继承的嵌套类/接口
BaseTemplate.RawData
 
字段摘要
 
从类 play.templates.BaseTemplate 继承的字段
compiledSource, compiledTemplate, compiledTemplateName, currentTemplate, doBodyLines, layout, layoutData, linesMatrix, timestamp
 
从类 play.templates.Template 继承的字段
name, source
 
构造方法摘要
GroovyTemplate(java.lang.String source)
           
GroovyTemplate(java.lang.String name, java.lang.String source)
           
 
方法摘要
 void compile()
           
protected  java.lang.String internalRender(java.util.Map<java.lang.String,java.lang.Object> args)
          The internal rendering method - When one templated calls another template, this method is used.
static
<T> void
registerFormatter(java.lang.String format, SafeFormatter formatter)
           
 java.lang.String render(java.util.Map<java.lang.String,java.lang.Object> args)
          Starts the rendering process without modifying the args-map
 
从类 play.templates.BaseTemplate 继承的方法
loadFromCache, loadPrecompiled
 
从类 play.templates.Template 继承的方法
getName, render
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

GroovyTemplate

public GroovyTemplate(java.lang.String name,
                      java.lang.String source)

GroovyTemplate

public GroovyTemplate(java.lang.String source)
方法详细信息

registerFormatter

public static <T> void registerFormatter(java.lang.String format,
                                         SafeFormatter formatter)

compile

public void compile()
指定者:
Template 中的 compile

render

public java.lang.String render(java.util.Map<java.lang.String,java.lang.Object> args)
从类 Template 复制的描述
Starts the rendering process without modifying the args-map

覆盖:
Template 中的 render
参数:
args - map containing data binding info
返回:
the result of the complete rendering

internalRender

protected java.lang.String internalRender(java.util.Map<java.lang.String,java.lang.Object> args)
从类 Template 复制的描述
The internal rendering method - When one templated calls another template, this method is used. The input args-map is constantly being modified, as different templates "communicate" with each other by storing info in the map

指定者:
Template 中的 internalRender


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly