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 SummaryNested ClassesModifier and TypeClassDescriptionprotected class
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractAlertExpressionContext(FunctionFactory funcFactory) 
- 
Method SummaryModifier 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
 
- 
createBoundExpressionMuch 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 interface- ExpressionParseContext
- 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 interface- ExpressionParseContext
 
 
-