Class BoundPropertyExpression
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.AbstractExpression
-
- com.inductiveautomation.ignition.common.expressions.BoundPropertyExpression
-
- All Implemented Interfaces:
ObservablePropertySource.PropertyInteractionListener
,Expression
public class BoundPropertyExpression extends AbstractExpression implements ObservablePropertySource.PropertyInteractionListener
This is an expression that is bound to a property value in a given PropertyValueSource.
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.ignition.common.expressions.AbstractExpression
children, context, updateListener
-
-
Constructor Summary
Constructors Constructor Description BoundPropertyExpression(PropertyValueSource source, Property<?> target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QualifiedValue
execute()
Compute and return the value of this expressionjava.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
propertyChanged(Property<?> prop)
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
connect, disconnect, getChildren, setChildren
-
-
-
-
Constructor Detail
-
BoundPropertyExpression
public BoundPropertyExpression(PropertyValueSource source, Property<?> target)
-
-
Method Detail
-
execute
@Nonnull public QualifiedValue execute() throws ExpressionException
Description copied from interface:Expression
Compute and return the value of this expression- Specified by:
execute
in interfaceExpression
- Throws:
ExpressionException
-
getType
public java.lang.Class<?> getType()
Description copied from interface:Expression
Return the type that this expression will return- Specified by:
getType
in interfaceExpression
-
getOpName
public java.lang.String getOpName()
Description copied from interface:Expression
Return a human-readable name for the operation that this expression performs- Specified by:
getOpName
in interfaceExpression
-
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
-
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
-
propertyChanged
public void propertyChanged(Property<?> prop)
- Specified by:
propertyChanged
in interfaceObservablePropertySource.PropertyInteractionListener
-
-