public static class DefaultFunctionFactory.NumberFormatFunction extends AbstractFunction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FUNC_NAME |
Constructor and Description |
---|
NumberFormatFunction() |
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, log
executeAll
public static final java.lang.String FUNC_NAME
public void connect(CommonContext context, InteractionListener updateListener)
connect
in interface Function
connect
in class BaseFunction
public void startup()
BaseFunction
startup
in interface Function
startup
in class BaseFunction
public void shutdown()
BaseFunction
shutdown
in interface Function
shutdown
in class BaseFunction
public void disconnect()
disconnect
in interface Function
disconnect
in class BaseFunction
public void onLocaleChange(LocaleChangeEvent event)
protected java.lang.String getFunctionDisplayName()
getFunctionDisplayName
in class AbstractFunction
public Function copy()
BaseFunction
copy
in interface Function
copy
in class BaseFunction
public QualifiedValue execute(Expression[] args) throws ExpressionException
Function
ExpressionException
public java.lang.String getArgDocString()
Function
public java.lang.Class<?> getType()
Function
protected boolean validateNumArgs(int num)
validateNumArgs
in class AbstractFunction