|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.p2.query.ExpressionMatchQuery<T>
public class ExpressionMatchQuery<T>
A query that matches candidates against an expression.
| Constructor Summary | |
|---|---|
ExpressionMatchQuery(Class<? extends T> matchingClass,
IExpression expression,
Object... parameters)
|
|
ExpressionMatchQuery(Class<? extends T> matchingClass,
String expression,
Object... parameters)
|
|
| Method Summary | |
|---|---|
IEvaluationContext |
getContext()
|
IMatchExpression<T> |
getExpression()
Returns the IExpression backing this query or null if
this is not an expression query. |
Class<? extends T> |
getMatchingClass()
|
boolean |
isMatch(T candidate)
Returns whether the given object satisfies the parameters of this query. |
IQueryResult<T> |
perform(IIndexProvider<T> indexProvider)
Evaluates the query using the indexProvider. |
IQueryResult<T> |
perform(Iterator<T> iterator)
Evaluates the query for a specific input. |
void |
postPerform()
|
void |
prePerform()
|
void |
setIndexProvider(IIndexProvider<T> indexProvider)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionMatchQuery(Class<? extends T> matchingClass,
IExpression expression,
Object... parameters)
public ExpressionMatchQuery(Class<? extends T> matchingClass,
String expression,
Object... parameters)
| Method Detail |
|---|
public IEvaluationContext getContext()
public Class<? extends T> getMatchingClass()
public IQueryResult<T> perform(IIndexProvider<T> indexProvider)
IQueryWithIndexindexProvider. The query
is first analyzed for index candidates (typically expressions like
id == <some value>) and if possible, indexes returned by
IIndexProvider.getIndex(String) will be used
in place of the iterator returned by IIndexProvider.everything().
perform in interface IQueryWithIndex<T>indexProvider - The provider of the material to evaluate the query on
public IQueryResult<T> perform(Iterator<T> iterator)
IQuery
perform in interface IQuery<T>iterator - The elements for which to evaluate the query on
public boolean isMatch(T candidate)
IMatchQuery
isMatch in interface IMatchQuery<T>candidate - The object to perform the query against
true if the unit satisfies the parameters
of this query, and false otherwisepublic IMatchExpression<T> getExpression()
IQuerynull if
this is not an expression query.
getExpression in interface IQuery<T>null.public void setIndexProvider(IIndexProvider<T> indexProvider)
public void prePerform()
public void postPerform()
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.