Class ConstantExpression
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.expressions.ConstantExpression
 
- 
- All Implemented Interfaces:
- Expression
 
 public class ConstantExpression extends java.lang.Object implements Expression 
- 
- 
Constructor SummaryConstructors Constructor Description ConstantExpression()ConstantExpression(java.lang.Object value)ConstantExpression(java.lang.Object value, QualityCode quality)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect(CommonContext context, InteractionListener updateListener)Gives the expression a chance to connect itself to things, if necessary.voiddisconnect()Tells the expression to disconnect from anything it was connected to.QualifiedValueexecute()Compute and return the value of this expressionExpression[]getChildren()The children (if any) that this expression is dependent on for its executionjava.lang.StringgetOpName()Return a human-readable name for the operation that this expression performsQualityCodegetQuality()java.lang.Class<?>getType()Return the type that this expression will returnjava.lang.ObjectgetValue()voidsetQuality(QualityCode quality)voidsetValue(java.lang.Object object)voidshutdown()Tells the expression to shutdown any polling operations.voidstartup()Tells the expression to startup any polling operations.
 
- 
- 
- 
Constructor Detail- 
ConstantExpressionpublic ConstantExpression(java.lang.Object value) 
 - 
ConstantExpressionpublic ConstantExpression(java.lang.Object value, QualityCode quality)
 - 
ConstantExpressionpublic ConstantExpression() 
 
- 
 - 
Method Detail- 
execute@Nonnull public QualifiedValue execute() Description copied from interface:ExpressionCompute and return the value of this expression- Specified by:
- executein interface- Expression
 
 - 
getTypepublic java.lang.Class<?> getType() Description copied from interface:ExpressionReturn the type that this expression will return- Specified by:
- getTypein interface- Expression
 
 - 
getOpNamepublic java.lang.String getOpName() Description copied from interface:ExpressionReturn a human-readable name for the operation that this expression performs- Specified by:
- getOpNamein interface- Expression
 
 - 
getChildrenpublic Expression[] getChildren() Description copied from interface:ExpressionThe children (if any) that this expression is dependent on for its execution- Specified by:
- getChildrenin interface- Expression
 
 - 
getValuepublic java.lang.Object getValue() 
 - 
setValuepublic void setValue(java.lang.Object object) 
 - 
getQualitypublic QualityCode getQuality() 
 - 
setQualitypublic void setQuality(QualityCode quality) 
 - 
connectpublic void connect(CommonContext context, InteractionListener updateListener) Description copied from interface:ExpressionGives 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:
- connectin interface- Expression
 
 - 
disconnectpublic void disconnect() Description copied from interface:ExpressionTells the expression to disconnect from anything it was connected to.- Specified by:
- disconnectin interface- Expression
 
 - 
shutdownpublic void shutdown() Description copied from interface:ExpressionTells the expression to shutdown any polling operations.- Specified by:
- shutdownin interface- Expression
 
 - 
startuppublic void startup() Description copied from interface:ExpressionTells the expression to startup any polling operations. Expressions that use this can remember the updateListener from connect() to feed update notification to.- Specified by:
- startupin interface- Expression
 
 
- 
 
-