public abstract class AbstractEscapeFunction extends AbstractTemplateFunction
Modifier and Type | Field and Description |
---|---|
protected String[] |
replaceWords |
protected String[] |
searchWords |
Constructor and Description |
---|
AbstractEscapeFunction(String names) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(Template template,
TemplateContext context,
Object... parameters)
执行函数体
|
String[] |
getReplaceWords() |
String[] |
getSearchWords() |
protected String |
replace(String content)
动态替换
|
void |
setReplaceWords(String[] replaceWords) |
void |
setSearchWords(String[] searchWords) |
getBindingTypes, getNames, getTemplateEngine, notSupported, setTemplateEngine
protected String[] searchWords
protected String[] replaceWords
public AbstractEscapeFunction(String names)
public String[] getSearchWords()
public void setSearchWords(String[] searchWords)
public String[] getReplaceWords()
public void setReplaceWords(String[] replaceWords)
public Object execute(Template template, TemplateContext context, Object... parameters) throws TemplateException
TemplateFunction
TemplateException
protected String replace(String content) throws TemplateException
content
- TemplateException
Copyright © 2006–2018 TinyGroup. All rights reserved.