public abstract class AbstractAlertExpressionContext extends java.lang.Object implements ExpressionParseContext
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractAlertExpressionContext.AlertVariableExpression |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAlertExpressionContext(FunctionFactory funcFactory) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
createBoundExpression(java.lang.String path)
Much like the standard binder, but first checks to see if the path is an alert variable.
|
protected abstract Parser |
createParser() |
AlertMessage |
getAlert() |
FunctionFactory |
getFunctionFactory() |
Expression |
parseExpression(java.lang.String expr) |
void |
setAlert(AlertMessage alert) |
void |
setSecondaryParseContext(ExpressionParseContext context) |
protected AbstractAlertExpressionContext(FunctionFactory funcFactory)
protected abstract Parser createParser()
public AlertMessage getAlert()
public void setAlert(AlertMessage alert)
public void setSecondaryParseContext(ExpressionParseContext context)
public Expression parseExpression(java.lang.String expr) throws java.lang.Exception
java.lang.Exceptionpublic Expression createBoundExpression(java.lang.String path) throws java.lang.RuntimeException
Our variables are in the format of "[name|format]" where the "|format" is optional.
createBoundExpression in interface ExpressionParseContextpath - the text content inside the braces.java.lang.RuntimeException - because the CUP parser doesn't have a throws on the function that calls this
inside the parserpublic FunctionFactory getFunctionFactory()
getFunctionFactory in interface ExpressionParseContext