private static class ValidatePredicateSearcher.ValidatePredicateVisitor extends ToolBox.QueryVisitor
Modifier and Type | Field and Description |
---|---|
Optional<ErrorMessage> |
errorMessage |
private IndexFacts.Session |
indexFacts |
Constructor and Description |
---|
ValidatePredicateVisitor(IndexFacts.Session indexFacts) |
Modifier and Type | Method and Description |
---|---|
private Index |
getIndexFromUnionOfDocumentTypes(PredicateQueryItem item) |
void |
onExit()
Invoked when all sub-items have been visited, or immediately after
visit() if there are no sub-items or visit() returned false.
|
boolean |
visit(Item item)
Called for each item in the query tree given to
ToolBox.visit(QueryVisitor, Item) . |
private void |
visit(PredicateQueryItem item) |
private final IndexFacts.Session indexFacts
public Optional<ErrorMessage> errorMessage
public ValidatePredicateVisitor(IndexFacts.Session indexFacts)
public boolean visit(Item item)
ToolBox.QueryVisitor
ToolBox.visit(QueryVisitor, Item)
. Return true to visit the
sub-items of the given item, return false to ignore the sub-items.visit
in class ToolBox.QueryVisitor
item
- each item in the query treeToolBox.QueryVisitor.onExit()
method)private void visit(PredicateQueryItem item)
private Index getIndexFromUnionOfDocumentTypes(PredicateQueryItem item)
public void onExit()
ToolBox.QueryVisitor
onExit
in class ToolBox.QueryVisitor
Copyright © 2018. All rights reserved.