public class EngineConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_ENCODING |
| 构造器和说明 |
|---|
EngineConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDirective(String directiveName,
Directive directive) |
void |
addSharedFunction(ISource source)
Add shared function by ISource
|
void |
addSharedFunction(String... fileNames)
Add shared function with files
|
void |
addSharedFunction(String fileName)
Add shared function with file
|
void |
addSharedFunctionByString(String content)
Add shared function by string content
|
void |
addSharedMethod(Class<?> sharedMethodFromClass)
Add shared method from class
|
void |
addSharedMethod(Object sharedMethodFromObject)
Add shared method from object
|
void |
addSharedObject(String name,
Object object) |
void |
addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
Add shared static method of Class
|
String |
getBaseTemplatePath() |
String |
getDatePattern() |
Stat |
getDirective(String directiveName) |
String |
getEncoding() |
Output |
getOutputDirective(ExprList exprList,
Location location) |
SharedMethodKit |
getSharedMethodKit() |
ISourceFactory |
getSourceFactory() |
boolean |
isDevMode() |
void |
removeDirective(String directiveName) |
void |
removeSharedMethod(Class<?> sharedClass)
Remove shared Method of the Class
|
void |
removeSharedMethod(Method method)
Remove shared Method
|
void |
removeSharedMethod(String methodName)
Remove shared Method with method name
|
void |
setBaseTemplatePath(String baseTemplatePath) |
void |
setDatePattern(String datePattern) |
void |
setEncoding(String encoding) |
void |
setOutputDirectiveFactory(IOutputDirectiveFactory outputDirectiveFactory)
Set output directive factory
|
void |
setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode) |
public void addSharedFunction(String fileName)
public void addSharedFunction(String... fileNames)
public void addSharedFunctionByString(String content)
public void addSharedFunction(ISource source)
public void setOutputDirectiveFactory(IOutputDirectiveFactory outputDirectiveFactory)
public boolean isDevMode()
public ISourceFactory getSourceFactory()
public void setBaseTemplatePath(String baseTemplatePath)
public String getBaseTemplatePath()
public void setEncoding(String encoding)
public String getEncoding()
public void setDatePattern(String datePattern)
public String getDatePattern()
public void setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode)
public void removeDirective(String directiveName)
public void addSharedMethod(Object sharedMethodFromObject)
public void addSharedMethod(Class<?> sharedMethodFromClass)
public void addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
public void removeSharedMethod(String methodName)
public void removeSharedMethod(Class<?> sharedClass)
public void removeSharedMethod(Method method)
public SharedMethodKit getSharedMethodKit()
Copyright © 2017. All rights reserved.