public class QueryResolverProcessor extends Object implements AstProcessor
AstProcessor
which resolves the elements a given source query into an output query, by invoking
QueryResolverDelegate
while traversing the given query tree.
Input: Parse tree as created by HQLParser
Output: Normalized parse treeConstructor and Description |
---|
QueryResolverProcessor(QueryResolverDelegate delegate) |
Modifier and Type | Method and Description |
---|---|
org.antlr.runtime.tree.CommonTree |
process(org.antlr.runtime.TokenStream tokens,
org.antlr.runtime.tree.CommonTree tree)
Processes the given tree.
|
public QueryResolverProcessor(QueryResolverDelegate delegate)
public org.antlr.runtime.tree.CommonTree process(org.antlr.runtime.TokenStream tokens, org.antlr.runtime.tree.CommonTree tree) throws org.antlr.runtime.RecognitionException
AstProcessor
process
in interface AstProcessor
tokens
- the token stream of the tree.tree
- the input treeorg.antlr.runtime.RecognitionException
- in case of an illegal input treeCopyright © 2013. All rights reserved.