T
- AntLR tree grammar, will usually be a CmisQueryWalker but can be
custom class for customized (extended) parserspublic abstract class QueryUtilBase<T extends org.antlr.runtime.tree.TreeParser> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.antlr.runtime.tree.CommonTree |
parserTree |
protected PredicateWalkerBase |
predicateWalker |
protected QueryObject |
queryObj |
protected String |
statement |
protected org.antlr.runtime.TokenStream |
tokens |
protected T |
walker |
Modifier | Constructor and Description |
---|---|
protected |
QueryUtilBase(String statement,
TypeManager tm,
PredicateWalkerBase pw,
QueryObject.ParserMode mode) |
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage(org.antlr.runtime.RecognitionException e) |
PredicateWalkerBase |
getPredicateWalker() |
QueryObject |
getQueryObject() |
String |
getStatement() |
T |
getWalker() |
abstract org.antlr.runtime.tree.CommonTree |
parseStatement()
Perform the first phase of query processing.
|
void |
processStatement()
Fully process a query by parsing and walking it and setting up the
supporting objects
|
void |
processStatementUsingCmisExceptions()
Same as traverseStatement but throws only CMIS Exceptions
|
abstract void |
walkStatement()
Perform the second phase of query processing, analyzes the select part,
check for semantic errors, fill the query object.
|
protected T extends org.antlr.runtime.tree.TreeParser walker
protected QueryObject queryObj
protected PredicateWalkerBase predicateWalker
protected String statement
protected org.antlr.runtime.tree.CommonTree parserTree
protected org.antlr.runtime.TokenStream tokens
protected QueryUtilBase(String statement, TypeManager tm, PredicateWalkerBase pw, QueryObject.ParserMode mode)
public abstract org.antlr.runtime.tree.CommonTree parseStatement() throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public abstract void walkStatement() throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public void processStatement() throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public T getWalker()
public PredicateWalkerBase getPredicateWalker()
public QueryObject getQueryObject()
public String getStatement()
public void processStatementUsingCmisExceptions()
public String getErrorMessage(org.antlr.runtime.RecognitionException e)
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.