public class RQLParser extends Object
Parses RQL encoded query strings and returns a tree of Abstract Syntax Tree (AST) nodes. These nodes can then be visited using a visitor pattern to produce a SQL query for example.
The RQL language is defined by Dojo Foundation's Persevere project - https://github.com/persvr/rql
| Constructor and Description |
|---|
RQLParser() |
RQLParser(Converter converter) |
| Modifier and Type | Method and Description |
|---|---|
ASTNode |
parse(String query) |
<R,A> R |
parse(String query,
ASTVisitor<R,A> visitor,
A param) |
<R> R |
parse(String query,
SimpleASTVisitor<R> visitor) |
public RQLParser()
public RQLParser(Converter converter)
public <R> R parse(String query, SimpleASTVisitor<R> visitor) throws RQLParserException
RQLParserExceptionpublic <R,A> R parse(String query, ASTVisitor<R,A> visitor, A param) throws RQLParserException
RQLParserExceptionpublic ASTNode parse(String query) throws RQLParserException
RQLParserExceptionCopyright © 2016 Jared Wiltshire. All rights reserved.