Class AbstractExpression
- java.lang.Object
-
- com.inductiveautomation.ignition.common.expressions.AbstractExpression
-
- All Implemented Interfaces:
Expression
- Direct Known Subclasses:
AbstractAlertExpressionContext.AlertVariableExpression,ArithmeticExpression,BitwiseExpression,BitwiseNot,BoundPropertyExpression,BoundPropertyExpression,BoundTagExpression,BoundVariableExpression,ComparisonExpression,EqualityExpression,FunctionExpression,LikeExpression,LogicalExpression,NonLocalizedToStringExpression,NotExpression,PropertyBasedExpressionParseContext.PropertyReferenceExpression,SubscriptExpression,TagPathReadExpression,TagReferenceBinder.SubscribedTagExpression,TagReferenceBinder.TagReadExpression,ToStringExpression,UMinusExpression
public abstract class AbstractExpression extends java.lang.Object implements Expression
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression[]childrenprotected CommonContextcontextprotected InteractionListenerupdateListener
-
Constructor Summary
Constructors Constructor Description AbstractExpression()
-
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.Expression[]getChildren()The children (if any) that this expression is dependent on for its executionvoidsetChildren(Expression[] expressions)voidshutdown()Tells the expression to shutdown any polling operations.voidstartup()Tells the expression to startup any polling operations.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.expressions.Expression
execute, getOpName, getType
-
-
-
-
Field Detail
-
children
protected Expression[] children
-
context
protected transient CommonContext context
-
updateListener
protected InteractionListener updateListener
-
-
Method Detail
-
getChildren
public Expression[] getChildren()
Description copied from interface:ExpressionThe children (if any) that this expression is dependent on for its execution- Specified by:
getChildrenin interfaceExpression
-
setChildren
public void setChildren(Expression[] expressions)
-
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
-
disconnect
public void disconnect()
Description copied from interface:ExpressionTells the expression to disconnect from anything it was connected to.- Specified by:
disconnectin interfaceExpression
-
shutdown
public void shutdown()
Description copied from interface:ExpressionTells the expression to shutdown any polling operations.- Specified by:
shutdownin interfaceExpression
-
startup
public 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 interfaceExpression
-
-