public class TologParser extends Object
Modifier and Type | Field and Description |
---|---|
protected ParseContextIF |
context |
protected TologOptions |
options |
Constructor and Description |
---|
TologParser(ParseContextIF context,
TologOptions options) |
Modifier and Type | Method and Description |
---|---|
ParseContextIF |
getContext() |
void |
load(Reader reader) |
void |
load(String ruleset) |
ParseContextIF |
parseDeclarations(String decls) |
TologQuery |
parseQuery(Reader queryReader)
Returns a parsed SELECT statement.
|
TologQuery |
parseQuery(String query)
Returns a parsed SELECT statement.
|
TologStatement |
parseStatement(String query)
Returns a parsed INSERT/UPDATE/MERGE/DELETE statement.
|
protected ParseContextIF context
protected TologOptions options
public TologParser(ParseContextIF context, TologOptions options)
public TologQuery parseQuery(String query) throws InvalidQueryException
InvalidQueryException
public TologQuery parseQuery(Reader queryReader) throws InvalidQueryException
InvalidQueryException
public TologStatement parseStatement(String query) throws InvalidQueryException
InvalidQueryException
public ParseContextIF parseDeclarations(String decls) throws InvalidQueryException
InvalidQueryException
public void load(String ruleset) throws InvalidQueryException
InvalidQueryException
public void load(Reader reader) throws InvalidQueryException
InvalidQueryException
public ParseContextIF getContext()