public class TemplateDirectiveHandler extends BaseHandler
限定符和类型 | 字段和说明 |
---|---|
private freemarker.core.Environment |
environment |
private freemarker.template.TemplateModel[] |
loopVars |
private java.util.Map<java.lang.String,freemarker.template.TemplateModel> |
parameters |
private freemarker.template.TemplateDirectiveBody |
templateDirectiveBody |
log, map, PARAMETER_TYPE_BIGDECIMAL, PARAMETER_TYPE_BOOLEAN, PARAMETER_TYPE_BYTE, PARAMETER_TYPE_CHAR, PARAMETER_TYPE_DATE, PARAMETER_TYPE_DOUBLE, PARAMETER_TYPE_INTEGER, PARAMETER_TYPE_INTEGERARRAY, PARAMETER_TYPE_LONG, PARAMETER_TYPE_LONGARRAY, PARAMETER_TYPE_SHORT, PARAMETER_TYPE_SHORTARRAY, PARAMETER_TYPE_STRING, PARAMETER_TYPE_STRINGARRAY, parameterList, PARAMETERS_CONTROLLER, PARAMETERS_NAME, regristerParameters, renderd
构造器和说明 |
---|
TemplateDirectiveHandler(java.util.Map<java.lang.String,freemarker.template.TemplateModel> parameters,
freemarker.template.TemplateModel[] loopVars,
freemarker.core.Environment environment,
freemarker.template.TemplateDirectiveBody templateDirectiveBody) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
getAttribute(java.lang.String name) |
java.math.BigDecimal |
getBigDecimal(java.lang.String name) |
protected java.lang.Boolean |
getBooleanWithoutRegister(java.lang.String name) |
java.lang.Byte |
getByteWithoutRegister(java.lang.String name) |
java.util.Date |
getDateWithoutRegister(java.lang.String name) |
java.lang.Double |
getDouble(java.lang.String name) |
java.lang.Integer |
getIntegerWithoutRegister(java.lang.String name) |
java.util.Locale |
getLocale() |
java.lang.Long |
getLong(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String name) |
javax.servlet.http.HttpServletRequest |
getRequest() |
java.lang.Short |
getShort(java.lang.String name) |
protected java.lang.String[] |
getStringArrayWithoutRegister(java.lang.String name) |
protected java.lang.String |
getStringWithoutRegister(java.lang.String name) |
java.io.Writer |
getWriter()
获取Writer
|
boolean |
inHttp() |
void |
print(java.lang.String value)
打印
|
private java.util.Map<java.lang.String,freemarker.template.TemplateModel> |
reduce() |
private void |
reduce(java.util.Map<java.lang.String,freemarker.template.TemplateModel> reduceMap) |
void |
render()
渲染
|
getBoolean, getBoolean, getBooleanWithoutRegister, getByte, getByte, getCharacter, getDate, getDate, getInteger, getInteger, getIntegerArray, getLong, getLongArray, getRenderd, getShortArray, getSize, getString, getString, getStringArray, getStringArray, put, regristerParameter, regristerParameter, regristerParameters
private java.util.Map<java.lang.String,freemarker.template.TemplateModel> parameters
private freemarker.template.TemplateModel[] loopVars
private freemarker.template.TemplateDirectiveBody templateDirectiveBody
private freemarker.core.Environment environment
public TemplateDirectiveHandler(java.util.Map<java.lang.String,freemarker.template.TemplateModel> parameters, freemarker.template.TemplateModel[] loopVars, freemarker.core.Environment environment, freemarker.template.TemplateDirectiveBody templateDirectiveBody)
parameters
- loopVars
- environment
- templateDirectiveBody
- public void render() throws freemarker.template.TemplateException, java.io.IOException
RenderHandler
freemarker.template.TemplateModelException
freemarker.template.TemplateException
java.io.IOException
public void print(java.lang.String value) throws java.io.IOException
RenderHandler
java.io.IOException
public java.io.Writer getWriter()
RenderHandler
private java.util.Map<java.lang.String,freemarker.template.TemplateModel> reduce() throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
private void reduce(java.util.Map<java.lang.String,freemarker.template.TemplateModel> reduceMap)
public java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected java.lang.String getStringWithoutRegister(java.lang.String name) throws freemarker.template.TemplateModelException
getStringWithoutRegister
在类中 BaseHandler
freemarker.template.TemplateModelException
public java.lang.Integer getIntegerWithoutRegister(java.lang.String name) throws freemarker.template.TemplateModelException
getIntegerWithoutRegister
在类中 BaseHandler
freemarker.template.TemplateModelException
public java.lang.Byte getByteWithoutRegister(java.lang.String name) throws freemarker.template.TemplateModelException
getByteWithoutRegister
在类中 BaseHandler
freemarker.template.TemplateModelException
public java.lang.Short getShort(java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public java.lang.Long getLong(java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public java.lang.Double getDouble(java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public java.math.BigDecimal getBigDecimal(java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected java.lang.String[] getStringArrayWithoutRegister(java.lang.String name) throws freemarker.template.TemplateModelException
getStringArrayWithoutRegister
在类中 BaseHandler
freemarker.template.TemplateModelException
protected java.lang.Boolean getBooleanWithoutRegister(java.lang.String name) throws freemarker.template.TemplateModelException
getBooleanWithoutRegister
在类中 BaseHandler
freemarker.template.TemplateModelException
public java.util.Date getDateWithoutRegister(java.lang.String name) throws freemarker.template.TemplateModelException
getDateWithoutRegister
在类中 BaseHandler
freemarker.template.TemplateModelException
public java.util.Locale getLocale()
public javax.servlet.http.HttpServletRequest getRequest() throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public java.lang.Object getAttribute(java.lang.String name) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public boolean inHttp()