Package org.eclipse.equinox.p2.query
Class ExpressionQuery<T>
java.lang.Object
org.eclipse.equinox.p2.query.ExpressionQuery<T>
- All Implemented Interfaces:
- IQueryWithIndex<T>,- IQuery<T>
A query that evaluates using an iterator as input and produces a new iterator.
- Since:
- 2.0
- 
Constructor SummaryConstructorsConstructorDescriptionExpressionQuery(Class<? extends T> matchingClass, String expression, Object... parameters) ExpressionQuery(Class<? extends T> elementClass, IExpression expression, Object... parameters) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> IContextExpression<T> createExpression(IQuery<T> query) static <T> Class<? extends T> getElementClass(IQuery<T> query) Returns the IExpression backing this query ornullif this is not an expression query.Evaluates the query for a specific input.perform(IIndexProvider<T> indexProvider) Evaluates the query using theindexProvider.
- 
Constructor Details- 
ExpressionQuerypublic ExpressionQuery(Class<? extends T> elementClass, IExpression expression, Object... parameters) 
- 
ExpressionQuery
 
- 
- 
Method Details- 
getElementClass
- 
performDescription copied from interface:IQueryWithIndexEvaluates the query using theindexProvider. The query is first analyzed for index candidates (typically expressions like id == <some value>) and if possible, indexes returned byIIndexProvider.getIndex(String)will be used in place of the iterator returned byIIndexProvider.everything().- Specified by:
- performin interface- IQueryWithIndex<T>
- Parameters:
- indexProvider- The provider of the material to evaluate the query on
- Returns:
- The results of the query.
 
- 
performDescription copied from interface:IQueryEvaluates the query for a specific input.
- 
getExpressionDescription copied from interface:IQueryReturns the IExpression backing this query ornullif this is not an expression query.- Specified by:
- getExpressionin interface- IQuery<T>
- Returns:
- An expression or null.
 
- 
getElementClass
- 
createExpression
 
-