Class ClientFunctionFactory.TranslateFunction
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
- 
- com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
- 
- com.inductiveautomation.ignition.client.expressions.ClientFunctionFactory.TranslateFunction
 
 
 
- 
- All Implemented Interfaces:
- LocaleListener,- Function
 - Enclosing class:
- ClientFunctionFactory
 
 public static class ClientFunctionFactory.TranslateFunction extends AbstractFunction implements LocaleListener 
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListenerLOCAL_CHANGE_EVENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description TranslateFunction(java.lang.String funcName)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(CommonContext context, InteractionListener updateListener)Empty implementation from BaseFunction.Functioncopy()Returns this.QualifiedValueexecute(Expression[] args)Execute this function, and return the function's qualified value.java.lang.StringgetArgDocString()Returns a string to be used in the auto-generated function documentation.protected java.lang.StringgetFunctionDisplayName()java.lang.Class<?>getType()Returns the type that this function will return upon executionvoidlocaleChanged(java.util.Locale newLocale)voidshutdown()Empty implementation from BaseFunction.- 
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractFunctionexecuteArg, initArgs, log, validateNumArgs
 - 
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.BaseFunctiondisconnect, executeAll, startup
 
- 
 
- 
- 
- 
Method Detail- 
executepublic QualifiedValue execute(Expression[] args) throws ExpressionException Description copied from interface:FunctionExecute this function, and return the function's qualified value.- Specified by:
- executein interface- Function
- Throws:
- ExpressionException
 
 - 
getTypepublic java.lang.Class<?> getType() Description copied from interface:FunctionReturns the type that this function will return upon execution
 - 
getArgDocStringpublic java.lang.String getArgDocString() Description copied from interface:FunctionReturns a string to be used in the auto-generated function documentation. The string should represent the arguments for the function, such as "string, count" for the "repeat" function.- Specified by:
- getArgDocStringin interface- Function
 
 - 
getFunctionDisplayNameprotected java.lang.String getFunctionDisplayName() - Specified by:
- getFunctionDisplayNamein class- AbstractFunction
 
 - 
copypublic Function copy() Description copied from class:BaseFunctionReturns this. Override to create a clone if you need a unique function object per Expression.- Specified by:
- copyin interface- Function
- Overrides:
- copyin class- BaseFunction
 
 - 
connectpublic void connect(CommonContext context, InteractionListener updateListener) Description copied from class:BaseFunctionEmpty implementation from BaseFunction. Override if necessary.- Specified by:
- connectin interface- Function
- Overrides:
- connectin class- BaseFunction
 
 - 
shutdownpublic void shutdown() Description copied from class:BaseFunctionEmpty implementation from BaseFunction. Override if necessary.- Specified by:
- shutdownin interface- Function
- Overrides:
- shutdownin class- BaseFunction
 
 - 
localeChangedpublic void localeChanged(java.util.Locale newLocale) - Specified by:
- localeChangedin interface- LocaleListener
 
 
- 
 
-