Class DefaultFunctionFactory.GetDatePartFunction
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
-
- com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
-
- com.inductiveautomation.ignition.common.expressions.DefaultFunctionFactory.GetDatePartFunction
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
DefaultFunctionFactory.GetAMorPMFunction,DefaultFunctionFactory.GetDayOfMonthFunction,DefaultFunctionFactory.GetDayOfWeekFunction,DefaultFunctionFactory.GetDayOfYearFunction,DefaultFunctionFactory.GetHour12Function,DefaultFunctionFactory.GetHour24Function,DefaultFunctionFactory.GetMillisFunction,DefaultFunctionFactory.GetMinuteFunction,DefaultFunctionFactory.GetMonthFunction,DefaultFunctionFactory.GetQuarterFunction,DefaultFunctionFactory.GetSecondFunction,DefaultFunctionFactory.GetTimezoneOffsetFunction,DefaultFunctionFactory.GetYearFunction
- Enclosing class:
- DefaultFunctionFactory
public abstract static class DefaultFunctionFactory.GetDatePartFunction extends AbstractFunction
-
-
Constructor Summary
Constructors Constructor Description GetDatePartFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.Class<?>getType()Returns the type that this function will return upon executionprotected booleanvalidateNumArgs(int num)-
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.AbstractFunction
executeArg, getFunctionDisplayName, initArgs, log
-
Methods inherited from class com.inductiveautomation.ignition.common.expressions.functions.BaseFunction
connect, copy, disconnect, executeAll, shutdown, startup
-
-
-
-
Method Detail
-
getType
public java.lang.Class<?> getType()
Description copied from interface:FunctionReturns the type that this function will return upon execution
-
validateNumArgs
protected boolean validateNumArgs(int num)
- Overrides:
validateNumArgsin classAbstractFunction
-
getArgDocString
public 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.
-
execute
public QualifiedValue execute(Expression[] args) throws ExpressionException
Description copied from interface:FunctionExecute this function, and return the function's qualified value.- Throws:
ExpressionException
-
-