Constructor and Description |
---|
QueryResolver(Resolver root)
Creates a new QueryResolver with resolving starting at the given root.
|
QueryResolver(java.util.Set<Resolver> roots)
Creates a new QueryResolver with resolving starting at the given set of resolver roots.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canParseQuery(java.lang.String query)
Returns whether the given query can be successfully parsed.
|
boolean |
canResolve(java.lang.String query)
Always returns true for the QueryResolver
|
java.util.Set<java.lang.String> |
getResolvableNames()
Returns an empty set, as there is no fixed set of resolvable names for a full query resolver.
|
(package private) static java.util.Set<Resolver> |
handleQuery(DSLParser.QueryContext query,
java.util.Set<Resolver> roots) |
java.util.Set<Resolver> |
resolve(java.lang.String query)
Resolves the given full query starting at the roots given in the constructor.
|
public QueryResolver(java.util.Set<Resolver> roots)
roots
- The set of roots to start resolving at.public QueryResolver(Resolver root)
root
- The root to start resolving at.public static boolean canParseQuery(java.lang.String query)
query
- The query to parse.public java.util.Set<Resolver> resolve(java.lang.String query)
public java.util.Set<java.lang.String> getResolvableNames()
getResolvableNames
in interface Resolver
public boolean canResolve(java.lang.String query)
canResolve
in interface Resolver
query
- The name to be resolved for this Resolver.static java.util.Set<Resolver> handleQuery(DSLParser.QueryContext query, java.util.Set<Resolver> roots)