public final class SearchArgumentImpl extends Object implements SearchArgument
Modifier and Type | Class and Description |
---|---|
static class |
SearchArgumentImpl.PredicateLeafImpl |
SearchArgument.Builder, SearchArgument.TruthValue
Modifier and Type | Method and Description |
---|---|
SearchArgument.TruthValue |
evaluate(SearchArgument.TruthValue[] leaves)
Evaluate the entire predicate based on the values for the leaf predicates.
|
ExpressionTree |
getCompactExpression()
Get the expression tree without the normalization to conjunctive normal
form.
|
ExpressionTree |
getExpression()
Get the expression tree normalized into conjunctive normal form.
|
List<PredicateLeaf> |
getLeaves()
Get the leaf predicates that are required to evaluate the predicate.
|
String |
toOldString()
Generate the backwards compatible string for test cases
|
String |
toString() |
public List<PredicateLeaf> getLeaves()
SearchArgument
getLeaves
in interface SearchArgument
public SearchArgument.TruthValue evaluate(SearchArgument.TruthValue[] leaves)
SearchArgument
evaluate
in interface SearchArgument
leaves
- the value of each leaf predicatepublic ExpressionTree getExpression()
SearchArgument
getExpression
in interface SearchArgument
public ExpressionTree getCompactExpression()
SearchArgument
getCompactExpression
in interface SearchArgument
public String toOldString()
Copyright © 2021 The Apache Software Foundation. All rights reserved.