private TreeNode currentNode = null;
private boolean currentlyInCheckChildren = false;
public TreeBuilder(String query) throws ParseException {
Parser p = new Parser(new StringReader(";"));
ASTJexlScript script = p.parse(new StringReader(query), null);
// Check to see if the child node is an AND or OR. If not, then
// there must be just a single value in the query expression
rootNode = new TreeNode();
rootNode.setType(RootNode.class);
currentNode = rootNode;
EvaluationContext ctx = new EvaluationContext();
script.childrenAccept(this, ctx);
}