Builds a RegexpQuery object from a RegexpQueryNode object.
Builds some kind of object from a query tree.