public class EngineConfig extends Object
EngineConfig class.
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_ENCODING
Constant
DEFAULT_ENCODING="UTF-8" |
| 构造器和说明 |
|---|
EngineConfig()
Constructor for EngineConfig.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDirective(String directiveName,
Class<? extends Directive> directiveClass)
addDirective.
|
void |
addDirective(String directiveName,
Directive directive)
已过时。
|
void |
addSharedFunction(ISource source)
addSharedFunction.
|
void |
addSharedFunction(String... fileNames)
addSharedFunction.
|
void |
addSharedFunction(String fileName)
addSharedFunction.
|
void |
addSharedFunctionByString(String content)
addSharedFunctionByString.
|
void |
addSharedMethod(Class<?> sharedMethodFromClass)
addSharedMethod.
|
void |
addSharedMethod(Object sharedMethodFromObject)
addSharedMethod.
|
void |
addSharedObject(String name,
Object object)
addSharedObject.
|
void |
addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
addSharedStaticMethod.
|
String |
getBaseTemplatePath()
Getter for the field
baseTemplatePath. |
String |
getDatePattern()
Getter for the field
datePattern. |
Class<? extends Directive> |
getDirective(String directiveName)
getDirective.
|
String |
getEncoding()
Getter for the field
encoding. |
Output |
getOutputDirective(ExprList exprList,
Location location)
getOutputDirective.
|
SharedMethodKit |
getSharedMethodKit()
Getter for the field
sharedMethodKit. |
ISourceFactory |
getSourceFactory()
Getter for the field
sourceFactory. |
boolean |
isDevMode()
isDevMode.
|
void |
removeDirective(String directiveName)
removeDirective.
|
void |
removeSharedMethod(Class<?> sharedClass)
removeSharedMethod.
|
void |
removeSharedMethod(Method method)
removeSharedMethod.
|
void |
removeSharedMethod(String methodName)
removeSharedMethod.
|
void |
setBaseTemplatePath(String baseTemplatePath)
Setter for the field
baseTemplatePath. |
void |
setDatePattern(String datePattern)
Setter for the field
datePattern. |
void |
setEncoderFactory(EncoderFactory encoderFactory)
setEncoderFactory.
|
void |
setEncoding(String encoding)
Setter for the field
encoding. |
void |
setOutputDirectiveFactory(OutputDirectiveFactory outputDirectiveFactory)
Setter for the field
outputDirectiveFactory. |
void |
setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode)
Setter for the field
reloadModifiedSharedFunctionInDevMode. |
void |
setWriterBufferSize(int bufferSize)
setWriterBufferSize.
|
public void addSharedFunction(String fileName)
addSharedFunction.
fileName - a String object.public void addSharedFunction(String... fileNames)
addSharedFunction.
fileNames - a String object.public void addSharedFunctionByString(String content)
addSharedFunctionByString.
content - a String object.public void addSharedFunction(ISource source)
addSharedFunction.
source - a ISource object.public void setOutputDirectiveFactory(OutputDirectiveFactory outputDirectiveFactory)
Setter for the field outputDirectiveFactory.
outputDirectiveFactory - a OutputDirectiveFactory object.public Output getOutputDirective(ExprList exprList, Location location)
getOutputDirective.
public boolean isDevMode()
isDevMode.
public ISourceFactory getSourceFactory()
Getter for the field sourceFactory.
ISourceFactory object.public void setBaseTemplatePath(String baseTemplatePath)
Setter for the field baseTemplatePath.
baseTemplatePath - a String object.public String getBaseTemplatePath()
Getter for the field baseTemplatePath.
String object.public void setEncoding(String encoding)
Setter for the field encoding.
encoding - a String object.public void setEncoderFactory(EncoderFactory encoderFactory)
setEncoderFactory.
encoderFactory - a EncoderFactory object.public void setWriterBufferSize(int bufferSize)
setWriterBufferSize.
bufferSize - a int.public void setDatePattern(String datePattern)
Setter for the field datePattern.
datePattern - a String object.public String getDatePattern()
Getter for the field datePattern.
String object.public void setReloadModifiedSharedFunctionInDevMode(boolean reloadModifiedSharedFunctionInDevMode)
Setter for the field reloadModifiedSharedFunctionInDevMode.
reloadModifiedSharedFunctionInDevMode - a boolean.@Deprecated public void addDirective(String directiveName, Directive directive)
addDirective.
public void addDirective(String directiveName, Class<? extends Directive> directiveClass)
addDirective.
public void removeDirective(String directiveName)
removeDirective.
directiveName - a String object.public void addSharedMethod(Object sharedMethodFromObject)
addSharedMethod.
sharedMethodFromObject - a Object object.public void addSharedMethod(Class<?> sharedMethodFromClass)
addSharedMethod.
sharedMethodFromClass - a Class object.public void addSharedStaticMethod(Class<?> sharedStaticMethodFromClass)
addSharedStaticMethod.
sharedStaticMethodFromClass - a Class object.public void removeSharedMethod(String methodName)
removeSharedMethod.
methodName - a String object.public void removeSharedMethod(Class<?> sharedClass)
removeSharedMethod.
sharedClass - a Class object.public void removeSharedMethod(Method method)
removeSharedMethod.
method - a Method object.public SharedMethodKit getSharedMethodKit()
Getter for the field sharedMethodKit.
SharedMethodKit object.Copyright © 2023. All rights reserved.