diff options
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/ContextQuery.java')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/ContextQuery.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/ContextQuery.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/ContextQuery.java index 061b90caf..0e403e28e 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/ContextQuery.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/core/ContextQuery.java @@ -1,5 +1,5 @@ -/******************************************************************************* -* Copyright (c) 2009, 2010 EclipseSource and others. All rights reserved. This +/******************************************************************************* +* Copyright (c) 2009, 2017 EclipseSource and others. All rights reserved. This * program and the accompanying materials are made available under the terms of * the Eclipse Public License v1.0 which accompanies this distribution, and is * available at http://www.eclipse.org/legal/epl-v10.html @@ -18,33 +18,35 @@ import org.eclipse.equinox.p2.query.IQueryResult; * ContextQuery is the abstract superclass for Queries that require the entire * input to evaluate the results. Queries must consider the group of elements before * processing the results. <P> - * - * ContextQueries must also be transitive. That is, if run on a subset of the - * input, the order in which they are executed must not matter. If there is the + * + * ContextQueries must also be transitive. That is, if run on a subset of the + * input, the order in which they are executed must not matter. If there is the * need for a non-transitive query, please see: * https://bugs.eclipse.org/bugs/show_bug.cgi?id=261403 * <p> - * Users of this query must call {@link #perform(Iterator)} to compute + * Users of this query must call {@link #perform(Iterator)} to compute * the results. <P> * This class may be subclassed by clients. Subclasses should specify the type * of object they support querying on. Subclasses are also encouraged to clearly * specify their match algorithm, and expose the parameters involved in the match * computation, to allow {@link IQueryable} implementations to optimize their * execution of the query. <P> - * + * * @since 2.0 */ public abstract class ContextQuery<T> implements IQuery<T> { /** - * Evaluates the query for a specific input. - * + * Evaluates the query for a specific input. + * * @param iterator The elements for which to evaluate the query on * @return The results of the query. The collector returned must be * the collector passed in. */ + @Override public abstract IQueryResult<T> perform(Iterator<T> iterator); + @Override public IExpression getExpression() { return null; } |