public interface QueryTreeBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(String language)
Returns
true if this query tree builder can handle a
statement in language . |
QueryRootNode |
createQueryTree(String statement,
NameResolver resolver,
QueryNodeFactory factory)
Creates a
QueryNode tree from a statement using the passed
query node factory. |
String[] |
getSupportedLanguages()
Returns the set of query languages supported by this builder.
|
String |
toString(QueryRootNode root,
NameResolver resolver)
Creates a String representation of the query node tree in the syntax this
QueryTreeBuilder can handle. |
QueryRootNode createQueryTree(String statement, NameResolver resolver, QueryNodeFactory factory) throws InvalidQueryException
QueryNode
tree from a statement using the passed
query node factory.statement
- the statement.resolver
- the name resolver to use.factory
- the query node factory to use.QueryNode
tree for the statement.InvalidQueryException
- if the statement is malformed.boolean canHandle(String language)
true
if this query tree builder can handle a
statement in language
.language
- the language of a query statement to build a query tree.true
if this builder can handle language
;
false
otherwise.String[] getSupportedLanguages()
String toString(QueryRootNode root, NameResolver resolver) throws InvalidQueryException
QueryTreeBuilder
can handle.root
- the root of the query node tree.resolver
- to resolve Names.InvalidQueryException
- if the query node tree cannot be converted
into a String representation due to
restrictions in this syntax.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.