Class ExpressionTreeBuilder
java.lang.Object
com.google.appengine.api.search.query.ExpressionTreeBuilder
A generator of AST representation of an expression. This class can use an
optionally supplied CommonTreeAdaptor to process the tree further.
If successful it returns the root of an AST representing the parsed query.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExpressionTreeBuilder
public ExpressionTreeBuilder() -
ExpressionTreeBuilder
public ExpressionTreeBuilder(org.antlr.runtime.tree.CommonTreeAdaptor adaptor)
-
-
Method Details
-
parse
public org.antlr.runtime.tree.CommonTree parse(String expression) throws org.antlr.runtime.RecognitionException Parses the user expression and returns aCommonTree
.- Parameters:
expression
- the expression to parse- Returns:
- a CommonTree constructed from the expression
- Throws:
org.antlr.runtime.RecognitionException
- if the user expression is invalid
-