|
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(Class<? extends T> elementClass,
IExpression expression,
Object... parameters)
|
|
ExpressionQuery(Class<? extends T> matchingClass,
String expression,
Object... parameters)
|
Method Summary | ||
---|---|---|
static
|
createExpression(IQuery<T> query)
|
|
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(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(Class<? extends T> elementClass, IExpression expression, Object... parameters)
public ExpressionQuery(Class<? extends T> matchingClass, String expression, Object... parameters)
Method Detail |
---|
public Class<? extends T> getElementClass()
public IQueryResult<T> perform(IIndexProvider<T> indexProvider)
IQueryWithIndex
indexProvider
. 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 IContextExpression<T> getExpression()
IQuery
null
if
this is not an expression query.
getExpression
in interface IQuery<T>
null
.public static <T> 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.