Class AbstractAlertExpressionContext

    • Constructor Detail

      • AbstractAlertExpressionContext

        protected AbstractAlertExpressionContext​(FunctionFactory funcFactory)
    • Method Detail

      • createParser

        protected abstract Parser createParser()
      • parseExpression

        public Expression parseExpression​(java.lang.String expr)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createBoundExpression

        public 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:
        createBoundExpression in 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