|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.query.token.JepTokenEvaluator
public final class JepTokenEvaluator
Evaluates whether a term or query forms a mathimatical expression. Immutable
| Constructor Summary | |
|---|---|
JepTokenEvaluator(String query,
boolean queryDependant)
Creates a new instance of JepTokenEvaluator and evaluate the query. |
|
| Method Summary | |
|---|---|
boolean |
evaluateToken(TokenPredicate token,
String term,
String query)
Returns true if the query (or term) satifies a JED expression. |
org.nfunk.jep.type.Complex |
getComplex(String expression)
|
Set<String> |
getMatchValues(TokenPredicate token,
String term)
Each true evaluation may also provide a synonym (or "match value"). |
boolean |
isQueryDependant(TokenPredicate predicate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JepTokenEvaluator(String query,
boolean queryDependant)
query - the query evaluation is occuring against.queryDependant - create a complex for every term or just the query? performance consideration.| Method Detail |
|---|
public org.nfunk.jep.type.Complex getComplex(String expression)
public boolean evaluateToken(TokenPredicate token,
String term,
String query)
evaluateToken in interface TokenEvaluatortoken - not used by this implementation.term - the term currently parsing.query - the query to find matches in.
can be null. this indicates we can just use the term.
public boolean isQueryDependant(TokenPredicate predicate)
isQueryDependant in interface TokenEvaluator
public Set<String> getMatchValues(TokenPredicate token,
String term)
TokenEvaluator
getMatchValues in interface TokenEvaluator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||