// Collect variable names from query
qc.jjtAccept(visitor, null);
// Adds ASTVar nodes to the wildcard node
for (String varName : visitor.getVariableNames()) {
ASTVar varNode = new ASTVar(SyntaxTreeBuilderTreeConstants.JJTVAR);
varNode.setName(varName);
wildcardNode.jjtAppendChild(varNode);
varNode.jjtSetParent(wildcardNode);
}
}
catch (VisitorException e) {
throw new MalformedQueryException(e);
}