QueryUtil
or
use the QueryUtil.createMatchQuery(String, Object...)
to create a custom expression based query. If the query cannot be expressed using
the p2QL, then use a predefined or custom expression query as a first filter
(in worst case, use QueryUtil.createIUAnyQuery()
) and then provide further filtering
like so:for(iter = queryable.query(someExpressionQuery).iterator(); iter.hasNext();) { // do your match here }
public interface IMatchQuery<T> extends IQuery<T>
isMatch(Object)
is mutually
exclusive from all other calls. ExpressionMatchQuery
.Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(T candidate)
Deprecated.
Returns whether the given object satisfies the parameters of this query.
|
getExpression, perform
boolean isMatch(T candidate)
candidate
- The object to perform the query againsttrue
if the unit satisfies the parameters
of this query, and false
otherwise
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.