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()Returns the function factory to be used for looking up functions during parsing.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.- Returns:
- the created
Expression - Throws:
RuntimeException- if the expression cannot be created (e.g., invalid path)
-
getFunctionFactory
Description copied from interface:ExpressionParseContextReturns the function factory to be used for looking up functions during parsing.- Specified by:
getFunctionFactoryin interfaceExpressionParseContext- Returns:
- the
FunctionFactory
-