Package io.github.jdbcx.driver
Class QueryParser
java.lang.Object
io.github.jdbcx.driver.QueryParser
This class parses the given query string to extract discrete parts and
executable code blocks. It can only recognize function(with a return value,
usually string) "{{[-] [func[(key=value)]:] <...> }}" or
procedure(void function) "{%[-] [proc[(key=value)]:] <...> %}". Block
starts with "{{-" or "{%-"" will be skipped and replaced with empty string.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryParser.Partstatic ParsedQueryparse(String query, VariableTag tag, Properties vars) Parses the given query string.
-
Method Details
-
newPart
-
parse
Parses the given query string.- Parameters:
query- the query string to parsetag- non-null variable tag used for parsingvars- optional variables for substitution- Returns:
- non-null parsed query
-