|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.p2.query.ExpressionQuery<T>
public class ExpressionQuery<T>
A query that evaluates using an iterator as input and produces a new iterator.
| Constructor Summary | |
|---|---|
ExpressionQuery(java.lang.Class<? extends T> elementClass,
IExpression expression,
java.lang.Object... parameters)
|
|
ExpressionQuery(java.lang.Class<? extends T> matchingClass,
java.lang.String expression,
java.lang.Object... parameters)
|
|
| Method Summary | ||
|---|---|---|
static
|
createExpression(IQuery<T> query)
|
|
java.lang.Class<? extends T> |
getElementClass()
|
|
static
|
getElementClass(IQuery<T> query)
|
|
IContextExpression<T> |
getExpression()
Returns the IExpression backing this query or null if
this is not an expression query. |
|
IQueryResult<T> |
perform(IIndexProvider<T> indexProvider)
Evaluates the query using the indexProvider. |
|
IQueryResult<T> |
perform(java.util.Iterator<T> iterator)
Evaluates the query for a specific input. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionQuery(java.lang.Class<? extends T> elementClass,
IExpression expression,
java.lang.Object... parameters)
public ExpressionQuery(java.lang.Class<? extends T> matchingClass,
java.lang.String expression,
java.lang.Object... parameters)
| Method Detail |
|---|
public java.lang.Class<? extends T> getElementClass()
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(java.util.Iterator<T> iterator)
IQuery
perform in interface IQuery<T>iterator - The elements for which to evaluate the query on
public IContextExpression<T> getExpression()
IQuerynull if
this is not an expression query.
getExpression in interface IQuery<T>null.public static <T> java.lang.Class<? extends T> getElementClass(IQuery<T> query)
public static <T> IContextExpression<T> createExpression(IQuery<T> query)
|
Eclipse Platform Release 3.6 |
|||||||||
| 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, 2010. All rights reserved.