public static class DefaultFunctionFactory.DateFormatFunction extends AbstractFunction
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FUNC_NAME |
static java.util.Map<java.lang.String,java.lang.String> |
specialFormats |
| Constructor and Description |
|---|
DateFormatFunction() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(CommonContext context,
InteractionListener updateListener)
This is to help the function listen for Locale changes broadcast by the EventBus.
|
Function |
copy()
Returns this.
|
void |
disconnect()
This is to help the function listen for Locale changes broadcast by the EventBus.
|
QualifiedValue |
execute(Expression[] args)
Execute this function, and return the function's qualified value.
|
java.lang.String |
getArgDocString()
Returns a string to be used in the auto-generated function documentation.
|
protected java.lang.String |
getFunctionDisplayName() |
java.lang.Class<?> |
getType()
Returns the type of Object that this function will generate with execute
|
void |
onLocaleChange(LocaleChangeEvent event) |
void |
shutdown()
Empty implementation from BaseFunction.
|
void |
startup()
Empty implementation from BaseFunction.
|
protected boolean |
validateNumArgs(int num) |
executeArg, initArgs, logexecuteAllpublic static final java.lang.String FUNC_NAME
public static final java.util.Map<java.lang.String,java.lang.String> specialFormats
public void connect(CommonContext context, InteractionListener updateListener)
connect in interface Functionconnect in class BaseFunctionpublic void startup()
BaseFunctionstartup in interface Functionstartup in class BaseFunctionpublic void shutdown()
BaseFunctionshutdown in interface Functionshutdown in class BaseFunctionpublic void disconnect()
disconnect in interface Functiondisconnect in class BaseFunctionpublic void onLocaleChange(LocaleChangeEvent event)
protected java.lang.String getFunctionDisplayName()
getFunctionDisplayName in class AbstractFunctionpublic Function copy()
BaseFunctioncopy in interface Functioncopy in class BaseFunctionpublic QualifiedValue execute(Expression[] args) throws ExpressionException
FunctionExpressionExceptionpublic java.lang.String getArgDocString()
Functionpublic java.lang.Class<?> getType()
Functionprotected boolean validateNumArgs(int num)
validateNumArgs in class AbstractFunction