Class AbstractAlertExpressionContext
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.alert.AbstractAlertExpressionContext
 
- 
- All Implemented Interfaces:
- ExpressionParseContext
 
 public abstract class AbstractAlertExpressionContext extends java.lang.Object implements ExpressionParseContext 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected classAbstractAlertExpressionContext.AlertVariableExpression
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractAlertExpressionContext(FunctionFactory funcFactory)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ExpressioncreateBoundExpression(java.lang.String path)Much like the standard binder, but first checks to see if the path is an alert variable.protected abstract ParsercreateParser()AlertMessagegetAlert()FunctionFactorygetFunctionFactory()ExpressionparseExpression(java.lang.String expr)voidsetAlert(AlertMessage alert)voidsetSecondaryParseContext(ExpressionParseContext context)
 
- 
- 
- 
Constructor Detail- 
AbstractAlertExpressionContextprotected AbstractAlertExpressionContext(FunctionFactory funcFactory) 
 
- 
 - 
Method Detail- 
createParserprotected abstract Parser createParser() 
 - 
getAlertpublic AlertMessage getAlert() 
 - 
setAlertpublic void setAlert(AlertMessage alert) 
 - 
setSecondaryParseContextpublic void setSecondaryParseContext(ExpressionParseContext context) 
 - 
parseExpressionpublic Expression parseExpression(java.lang.String expr) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
createBoundExpressionpublic Expression createBoundExpression(java.lang.String path) throws java.lang.RuntimeException 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 interface- ExpressionParseContext
- Parameters:
- path- the text content inside the braces.
- Throws:
- java.lang.RuntimeException- because the CUP parser doesn't have a throws on the function that calls this inside the parser
 
 - 
getFunctionFactorypublic FunctionFactory getFunctionFactory() - Specified by:
- getFunctionFactoryin interface- ExpressionParseContext
 
 
- 
 
-