- java.lang.Object
-
- com.rabbitmq.jms.parse.sql.SqlEvaluator
-
-
Constructor Summary
Constructors Constructor Description SqlEvaluator(SqlParser parser, java.util.Map<java.lang.String,SqlExpressionType> identTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(java.util.Map<java.lang.String,java.lang.Object> env)Evaluates the (given) expression with theenvironment given.booleanevaluatorOk()This call is idempotent.java.lang.StringgetErrorMessage()This call is idempotent.com.rabbitmq.jms.parse.sql.SqlParseTreetypedParseTree()
-
-
-
Constructor Detail
-
SqlEvaluator
public SqlEvaluator(SqlParser parser, java.util.Map<java.lang.String,SqlExpressionType> identTypes)
-
-
Method Detail
-
evaluate
public boolean evaluate(java.util.Map<java.lang.String,java.lang.Object> env)
Description copied from interface:EvaluatorEvaluates the (given) expression with theenvironment given. This call should not fail, providedEvaluator.evaluatorOk()istrue.
-
typedParseTree
public com.rabbitmq.jms.parse.sql.SqlParseTree typedParseTree()
- Returns:
- the type-checked parse tree used for evaluation;
nullifevaluatorOk()isfalse.
-
evaluatorOk
public boolean evaluatorOk()
Description copied from interface:EvaluatorThis call is idempotent.- Specified by:
evaluatorOkin interfaceEvaluator- Returns:
trueif the evaluator can run cleanly;falseotherwise
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:EvaluatorThis call is idempotent.- Specified by:
getErrorMessagein interfaceEvaluator- Returns:
- null if evaluatorOk() is false; otherwise an error message denoting the type of failure to initialise.
-
-