@Immutable public interface QueryParser
QueryCommand
.Modifier and Type | Method and Description |
---|---|
String |
getLanguage()
Get the name of the language that this parser is able to understand.
|
QueryCommand |
parseQuery(String query,
TypeSystem typeSystem)
Parse the supplied query from a string representation into a
QueryCommand . |
String getLanguage()
QueryCommand parseQuery(String query, TypeSystem typeSystem) throws InvalidQueryException
QueryCommand
.query
- the query in string form; may not be nulltypeSystem
- the type system used by the query; may not be nullParsingException
- if there is an error parsing the supplied queryInvalidQueryException
- if the supplied query can be parsed but is invalidCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.