Class PropertyBasedExpressionParseContext.PropertyReferenceExpression
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.AbstractExpression
-
- com.inductiveautomation.ignition.gateway.expressions.PropertyBasedExpressionParseContext.PropertyReferenceExpression
-
- All Implemented Interfaces:
ObservablePropertySource.PropertyInteractionListener,Expression
- Enclosing class:
- PropertyBasedExpressionParseContext
protected class PropertyBasedExpressionParseContext.PropertyReferenceExpression extends AbstractExpression implements ObservablePropertySource.PropertyInteractionListener
-
-
Field Summary
Fields Modifier and Type Field Description protected Property<?>prop-
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
children, context, updateListener
-
-
Constructor Summary
Constructors Constructor Description PropertyReferenceExpression(Property<?> prop, boolean allowSubscription)
-
Method Summary
All 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 expressionjava.lang.StringgetOpName()Return a human-readable name for the operation that this expression performsjava.lang.Class<?>getType()Return the type that this expression will returnvoidpropertyChanged(Property<?> prop)-
Methods inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
getChildren, setChildren, shutdown, startup
-
-
-
-
Field Detail
-
prop
protected Property<?> prop
-
-
Constructor Detail
-
PropertyReferenceExpression
public PropertyReferenceExpression(Property<?> prop, boolean allowSubscription)
-
-
Method Detail
-
execute
@Nonnull public QualifiedValue execute() throws ExpressionException
Description copied from interface:ExpressionCompute and return the value of this expression- Specified by:
executein interfaceExpression- Throws:
ExpressionException
-
getType
public java.lang.Class<?> getType()
Description copied from interface:ExpressionReturn the type that this expression will return- Specified by:
getTypein interfaceExpression
-
getOpName
public java.lang.String getOpName()
Description copied from interface:ExpressionReturn a human-readable name for the operation that this expression performs- Specified by:
getOpNamein interfaceExpression
-
connect
public 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 interfaceExpression- Overrides:
connectin classAbstractExpression
-
disconnect
public void disconnect()
Description copied from interface:ExpressionTells the expression to disconnect from anything it was connected to.- Specified by:
disconnectin interfaceExpression- Overrides:
disconnectin classAbstractExpression
-
propertyChanged
public void propertyChanged(Property<?> prop)
- Specified by:
propertyChangedin interfaceObservablePropertySource.PropertyInteractionListener
-
-