Class FunctionExpression
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.AbstractExpression
-
- com.inductiveautomation.ignition.common.expressions.FunctionExpression
-
- All Implemented Interfaces:
Expression
public class FunctionExpression extends AbstractExpression
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
children, context, updateListener
-
-
Constructor Summary
Constructors Constructor Description FunctionExpression()
FunctionExpression(ExpressionParseContext context, java.lang.String funcName, java.util.List<Expression> argList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect(CommonContext context, InteractionListener updateListener)
Gives the expression a chance to connect itself to things, if necessary.void
disconnect()
Tells the expression to disconnect from anything it was connected to.QualifiedValue
execute()
Compute and return the value of this expressionFunction
getFunc()
java.lang.String
getFuncName()
java.lang.String
getOpName()
Return a human-readable name for the operation that this expression performsjava.lang.Class<?>
getType()
Return the type that this expression will returnvoid
setFunc(Function function)
void
setFuncName(java.lang.String string)
void
shutdown()
Tells the expression to shutdown any polling operations.void
startup()
Tells the expression to startup any polling operations.-
Methods inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
getChildren, setChildren
-
-
-
-
Constructor Detail
-
FunctionExpression
public FunctionExpression(ExpressionParseContext context, java.lang.String funcName, java.util.List<Expression> argList)
-
FunctionExpression
public FunctionExpression()
-
-
Method Detail
-
connect
public void connect(CommonContext context, InteractionListener updateListener)
Description copied from interface:Expression
Gives the expression a chance to connect itself to things, if necessary. Most expressions do not have any connections. An expression should notify the updateListener if they change.- Specified by:
connect
in interfaceExpression
- Overrides:
connect
in classAbstractExpression
-
disconnect
public void disconnect()
Description copied from interface:Expression
Tells the expression to disconnect from anything it was connected to.- Specified by:
disconnect
in interfaceExpression
- Overrides:
disconnect
in classAbstractExpression
-
shutdown
public void shutdown()
Description copied from interface:Expression
Tells the expression to shutdown any polling operations.- Specified by:
shutdown
in interfaceExpression
- Overrides:
shutdown
in classAbstractExpression
-
startup
public void startup()
Description copied from interface:Expression
Tells the expression to startup any polling operations. Expressions that use this can remember the updateListener from connect() to feed update notification to.- Specified by:
startup
in interfaceExpression
- Overrides:
startup
in classAbstractExpression
-
execute
@Nonnull public QualifiedValue execute() throws ExpressionException
Description copied from interface:Expression
Compute and return the value of this expression- Throws:
ExpressionException
-
getType
public java.lang.Class<?> getType()
Description copied from interface:Expression
Return the type that this expression will return
-
getOpName
public java.lang.String getOpName()
Description copied from interface:Expression
Return a human-readable name for the operation that this expression performs
-
getFunc
public Function getFunc()
-
getFuncName
public java.lang.String getFuncName()
-
setFunc
public void setFunc(Function function)
-
setFuncName
public void setFuncName(java.lang.String string)
-
-