public class ExpressionEvaluator extends Object implements Iterable<ExpressionEvaluator.Result>
| Modifier and Type | Class and Description |
|---|---|
class |
ExpressionEvaluator.Result |
| Constructor and Description |
|---|
ExpressionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
ExpressionEvaluator |
addExpression(String expression) |
void |
execute() |
String |
getComputedJPQLGroupStatement() |
String |
getComputedJPQLStatement() |
Iterator<ExpressionEvaluator.Result> |
iterator() |
void |
setTestMode(boolean mode) |
List<String> |
tokenizeCondition(String condition) |
public void setTestMode(boolean mode)
mode - passing a value of true will bypass query later and only compute the effective JPQL statements, handy
for testingpublic ExpressionEvaluator addExpression(String expression) throws org.rhq.core.domain.resource.group.InvalidExpressionException
expression - a string in the form of 'condition = value' or 'groupBy condition'org.rhq.core.domain.resource.group.InvalidExpressionException - if the expression can not be parsed for any reason, the message will try to
get the details as to the parse failurepublic String getComputedJPQLStatement()
public String getComputedJPQLGroupStatement()
public void execute()
public Iterator<ExpressionEvaluator.Result> iterator()
iterator in interface Iterable<ExpressionEvaluator.Result>Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.