Node[] node = parser.parseResult(result);
Expression[] expr = new Expression[node.length];
for (int i = 0; i < node.length; i++)
{
ExpressionCompiler comp = new ExpressionCompiler();
comp.setSymbolTable(symtbl);
comp.setMethodAliases(queryMethodAliasByPrefix);
String alias = null;
Node aliasNode = null;
while (node[i].hasNextChild())
{
Node childNode = node[i].getNextChild();
if (childNode.getNodeType() == NodeType.NAME)
{
// Alias node
aliasNode = childNode;
}
}
if (aliasNode != null)
{
alias = (String)aliasNode.getNodeValue();
node[i].removeChildNode(aliasNode);
}
if (candidateAliasOrig != null)
{
swapCandidateAliasNodeName(node[i]);
}
if (parameterSubtitutionMap != null)
{
node[i] = swapSubqueryParameters(node[i]);
}
expr[i] = comp.compileExpression(node[i]);
if (alias != null)
{
expr[i].setAlias(alias);
}
try