|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.commons.visitor.AbstractReflectionVisitor
no.sesat.search.query.finder.PredicateFinder
public final class PredicateFinder
Responsible for Visiting the Query and finding where the predicate lies. This class is thread-safe. TODO Handle predicates under NOT and ANDNOT clauses. Currently they are ignored.
| Field Summary |
|---|
| Fields inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
|---|
VISIT_METHOD_IMPL |
| Constructor Summary | |
|---|---|
PredicateFinder()
|
|
| Method Summary | |
|---|---|
Set<Clause> |
findClauses(Clause root,
org.apache.commons.collections.Predicate predicate,
TokenEvaluationEngine engine)
find all the clauses containing the predicate. |
Clause |
findFirstClause(Clause root,
org.apache.commons.collections.Predicate predicate,
TokenEvaluationEngine engine)
find the first clause containing the predicate. |
protected void |
visitImpl(AndNotClause clause)
TODO comment me. |
protected void |
visitImpl(BinaryClause clause)
TODO comment me. |
protected void |
visitImpl(Clause clause)
TODO comment me. |
protected void |
visitImpl(NotClause clause)
TODO comment me. |
protected void |
visitImpl(XorClause clause)
TODO comment me. |
| Methods inherited from class no.sesat.commons.visitor.AbstractReflectionVisitor |
|---|
visit, visitImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PredicateFinder()
| Method Detail |
|---|
public Clause findFirstClause(Clause root,
org.apache.commons.collections.Predicate predicate,
TokenEvaluationEngine engine)
root - predicate - engine -
public Set<Clause> findClauses(Clause root,
org.apache.commons.collections.Predicate predicate,
TokenEvaluationEngine engine)
root - predicate - engine -
protected void visitImpl(BinaryClause clause)
clause - protected void visitImpl(XorClause clause)
clause - protected void visitImpl(NotClause clause)
clause - protected void visitImpl(AndNotClause clause)
clause - protected void visitImpl(Clause clause)
clause -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||