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
ConstructorsModifierConstructorDescriptionprotectedAbstractAlertExpressionContext(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 ParsergetAlert()parseExpression(String expr) voidsetAlert(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:
createBoundExpressionin 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:
getFunctionFactoryin interfaceExpressionParseContext
-