| 构造器和说明 |
|---|
StringSource(String content,
boolean cache)
构造 StringSource
|
StringSource(StringBuilder content,
boolean cache) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCacheKey()
cache key used to cache, return null if do not cache the template
注意:如果不希望缓存从该 ISource 解析出来的 Template 对象
让 getCacheKey() 返回 null 值即可
|
StringBuilder |
getContent()
content of ISource
|
String |
getEncoding()
encoding of content
|
boolean |
isModified()
reload template if modified on devMode
|
String |
toString() |
public StringSource(String content, boolean cache)
content - 模板内容cache - true 则缓存 Template,否则不缓存public StringSource(StringBuilder content, boolean cache)
public boolean isModified()
ISourceisModified 在接口中 ISourcepublic String getCacheKey()
ISourcegetCacheKey 在接口中 ISourcepublic StringBuilder getContent()
ISourcegetContent 在接口中 ISourcepublic String getEncoding()
ISourcegetEncoding 在接口中 ISourceCopyright © 2019. All rights reserved.