类 BaseMethod
java.lang.Object
com.publiccms.common.base.BaseMethod
- 所有已实现的接口:
freemarker.template.TemplateMethodModel
,freemarker.template.TemplateMethodModelEx
,freemarker.template.TemplateModel
- 直接已知子类:
ConfuseMethod
,GetAiChatEnableMethod
,GetCategoryAttributeMethod
,GetCategoryAttributesMethod
,GetContentAttributeMethod
,GetContentAttributesMethod
,GetContentPageMethod
,GetDateMethod
,GetDictEnableMethod
,GetDictMethod
,GetFileUploadPrefixMethod
,GetFontListMethod
,GetHashMethod
,GetHtmlMethod
,GetIpRegionMethod
,GetIpv4NumberMethod
,GetIpv6NumberMethod
,GetKeywordsMethod
,GetLayoutStyleMethod
,GetLicenseDataMethod
,GetLicenseMethod
,GetMd5Method
,GetPageMethod
,GetParameterTypeListMethod
,GetPlaceAttributeMethod
,GetPlaceAttributesMethod
,GetPrivateUrlMethod
,GetProcessTypeListMethod
,GetRandomMethod
,GetSha1Method
,GetSha256Method
,GetSha512Method
,GetSitefileMethod
,GetSkipWordMethod
,GetSleepMethod
,GetTemplateResultMethod
,GetTextFromHtmlMethod
,GetUrlMethod
,GetUUIDMethod
,GetXmlMethod
public abstract class BaseMethod
extends Object
implements freemarker.template.TemplateMethodModelEx
BaseMethod FreeMarker自定义方法基类
-
字段概要
字段从接口继承的字段 freemarker.template.TemplateModel
NOTHING
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明execute
(jakarta.servlet.http.HttpServletRequest request, List<freemarker.template.TemplateModel> arguments) abstract Object
static Boolean
getBoolean
(int index, List<freemarker.template.TemplateModel> arguments) static Date
static Double
static Integer
getInteger
(int index, List<freemarker.template.TemplateModel> arguments) static Integer[]
getIntegerArray
(int index, List<freemarker.template.TemplateModel> arguments) static Long
static Long[]
getLongArray
(int index, List<freemarker.template.TemplateModel> arguments) static Map<?,
?> protected static freemarker.template.TemplateModel
getName()
static Short
static String
static String[]
getStringArray
(int index, List<freemarker.template.TemplateModel> arguments) boolean
abstract int
abstract boolean
void
-
字段详细资料
-
log
protected final org.apache.commons.logging.Log log -
name
-
-
构造器详细资料
-
BaseMethod
public BaseMethod()
-
-
方法详细资料
-
exec
- 指定者:
exec
在接口中freemarker.template.TemplateMethodModel
- 指定者:
exec
在接口中freemarker.template.TemplateMethodModelEx
- 抛出:
freemarker.template.TemplateModelException
-
execute
public abstract Object execute(List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 抛出:
freemarker.template.TemplateModelException
-
execute
public Object execute(jakarta.servlet.http.HttpServletRequest request, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 抛出:
freemarker.template.TemplateModelException
-
getModel
protected static freemarker.template.TemplateModel getModel(int index, List<freemarker.template.TemplateModel> arguments) -
getMap
public static Map<?,?> getMap(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- map value
- 抛出:
freemarker.template.TemplateModelException
-
getString
public static String getString(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- string value
- 抛出:
freemarker.template.TemplateModelException
-
getInteger
public static Integer getInteger(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- int value
- 抛出:
freemarker.template.TemplateModelException
-
getShort
public static Short getShort(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- short value
- 抛出:
freemarker.template.TemplateModelException
-
getLong
public static Long getLong(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- long value
- 抛出:
freemarker.template.TemplateModelException
-
getDouble
public static Double getDouble(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- double value
- 抛出:
freemarker.template.TemplateModelException
-
getStringArray
public static String[] getStringArray(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- string array value
- 抛出:
freemarker.template.TemplateModelException
-
getIntegerArray
public static Integer[] getIntegerArray(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- int array value
- 抛出:
freemarker.template.TemplateModelException
-
getLongArray
public static Long[] getLongArray(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- long array value
- 抛出:
freemarker.template.TemplateModelException
-
getBoolean
public static Boolean getBoolean(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- bool value
- 抛出:
freemarker.template.TemplateModelException
-
getDate
public static Date getDate(int index, List<freemarker.template.TemplateModel> arguments) throws freemarker.template.TemplateModelException - 参数:
index
-arguments
-- 返回:
- date
- 抛出:
freemarker.template.TemplateModelException
-
httpEnabled
public boolean httpEnabled()- 返回:
- whether to enable http
-
minParametersNumber
public abstract int minParametersNumber()- 返回:
- min parameters number
-
needAppToken
public abstract boolean needAppToken()- 返回:
- whether to need app token
-
getName
- 返回:
- name
-
setName
- 参数:
name
-
-