Class AbstractAlertExpressionContext
java.lang.Object
com.inductiveautomation.ignition.gateway.alert.AbstractAlertExpressionContext
- All Implemented Interfaces:
ExpressionParseContext
public abstract class AbstractAlertExpressionContext
extends Object
implements ExpressionParseContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAlertExpressionContext
(FunctionFactory funcFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateBoundExpression
(String path) Much like the standard binder, but first checks to see if the path is an alert variable.protected abstract Parser
getAlert()
parseExpression
(String expr) void
setAlert
(AlertMessage alert) void
-
Constructor Details
-
AbstractAlertExpressionContext
-
-
Method Details
-
createParser
-
getAlert
-
setAlert
-
setSecondaryParseContext
-
parseExpression
- Throws:
Exception
-
createBoundExpression
Much like the standard binder, but first checks to see if the path is an alert variable. Also, should ensure that that the resulting expression can be evaluated to a boolean.Our variables are in the format of "[name|format]" where the "|format" is optional.
- Specified by:
createBoundExpression
in interfaceExpressionParseContext
- Parameters:
path
- the text content inside the braces.- Throws:
RuntimeException
- because the CUP parser doesn't have a throws on the function that calls this inside the parser
-
getFunctionFactory
- Specified by:
getFunctionFactory
in interfaceExpressionParseContext
-