public class ProcessingPredicateVisitor extends Object implements PredicateVisitor
| Constructor and Description |
|---|
ProcessingPredicateVisitor(QueryImpl query)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptAlwaysPredicate(AlwaysPredicate predicate) |
void |
acceptArrayPredicate(ArrayPredicate arrayPredicate) |
void |
acceptCategoryPredicate(CategoryPredicate predicate) |
void |
acceptComparisonPredicate(ComparisonPredicate predicate) |
void |
acceptUnaryPredicate(UnaryPredicate predicate) |
Predicate |
getProcessedPredicate()
Get a new predicate with all sub-resource elements contained in the
visited predicate removed.
|
Set<String> |
getSubResourceCategories()
Get a set of any sub-resource subResourceCategories that were referenced
in the predicate that was visited.
|
Set<String> |
getSubResourceProperties()
Get a set of any sub-resource subResourceProperties that were referenced
in the predicate that was visited.
|
public ProcessingPredicateVisitor(QueryImpl query)
query - associated querypublic void acceptComparisonPredicate(ComparisonPredicate predicate)
acceptComparisonPredicate in interface PredicateVisitorpublic void acceptArrayPredicate(ArrayPredicate arrayPredicate)
acceptArrayPredicate in interface PredicateVisitorpublic void acceptUnaryPredicate(UnaryPredicate predicate)
acceptUnaryPredicate in interface PredicateVisitorpublic void acceptAlwaysPredicate(AlwaysPredicate predicate)
acceptAlwaysPredicate in interface PredicateVisitorpublic void acceptCategoryPredicate(CategoryPredicate predicate)
acceptCategoryPredicate in interface PredicateVisitorpublic Predicate getProcessedPredicate()
public Set<String> getSubResourceCategories()
Copyright © 2022 Apache Software Foundation. All rights reserved.