public class AndEvaluator extends Object implements Evaluator<org.apache.directory.api.ldap.model.filter.AndNode>
| Constructor and Description |
|---|
AndEvaluator(org.apache.directory.api.ldap.model.filter.AndNode node,
List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> evaluators)
Creates an instance of AndEvaluator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(org.apache.directory.api.ldap.model.entry.Entry entry)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluate(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn,
IndexEntry<?,String> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
org.apache.directory.api.ldap.model.filter.AndNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
String |
toString() |
String |
toString(String tabs)
Pretty-print an Evaluator
|
public AndEvaluator(org.apache.directory.api.ldap.model.filter.AndNode node, List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> evaluators)
node - The And Nodeevaluators - The list of evaluators for all the contaned nodespublic boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.AndNode>entry - the candidate entryorg.apache.directory.api.ldap.model.exception.LdapException - if there are faults during evaluationpublic boolean evaluate(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn, IndexEntry<?,String> indexEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.AndNode>partitionTxn - The transaction to useindexEntry - the index record of the entry to evaluateorg.apache.directory.api.ldap.model.exception.LdapException - if there are faults during evaluationpublic org.apache.directory.api.ldap.model.filter.AndNode getExpression()
getExpression in interface Evaluator<org.apache.directory.api.ldap.model.filter.AndNode>public String toString(String tabs)
EvaluatortoString in interface Evaluator<org.apache.directory.api.ldap.model.filter.AndNode>tabs - The tabs to add before the evaluatorObject.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.