JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <StaticEvalVisitor.h>
Public Member Functions | |
void | visit (AndPredicate *e) override |
void | visit (NegatePredicate *e) override |
void | visit (OrPredicate *e) override |
void | visit (EqualizePredicate *e) override |
void | visit (ComparePredicate *e) override |
void | visit (ValToPredicate *e) override |
std::unique_ptr< Predicate > | getPred () |
Protected Attributes | |
bool | changed = false |
std::unique_ptr< Predicate > | pred |
Visitor analyzing a predicate tree for sub-trees with constant/static results. If such a subtree is found, it is replaced by the constant result in a copied instance.
std::unique_ptr< joda::query::Predicate > joda::query::StaticEvalVisitor::getPred | ( | ) |
|
overridevirtual |
Visits an AndPredicate
e | Predicate to visit |
Implements joda::query::PredicateVisitor.
|
overridevirtual |
Visits an ComparePredicate
e | Predicate to visit |
Implements joda::query::PredicateVisitor.
|
overridevirtual |
Visits an EqualizePredicate
e | Predicate to visit |
Implements joda::query::PredicateVisitor.
|
overridevirtual |
Visits an NegatePredicate
e | Predicate to visit |
Implements joda::query::PredicateVisitor.
|
overridevirtual |
Visits an OrPredicate
e | Predicate to visit |
Implements joda::query::PredicateVisitor.
|
overridevirtual |
Visits an ValToPredicate
e | Predicate to visit |
Implements joda::query::PredicateVisitor.
|
protected |
|
protected |