]> git.uio.no Git - ifi-stolz-refaktor.git/blame - case-study/jdt-after/ui/org/eclipse/jdt/ui/search/ElementQuerySpecification.java
Case Study: adding data and statistics
[ifi-stolz-refaktor.git] / case-study / jdt-after / ui / org / eclipse / jdt / ui / search / ElementQuerySpecification.java
CommitLineData
1b2798f6
EK
1/*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11package org.eclipse.jdt.ui.search;
12
13import org.eclipse.jdt.core.IJavaElement;
14import org.eclipse.jdt.core.search.IJavaSearchScope;
15
16/**
17 * <p>
18 * Describes a search query by giving the {@link IJavaElement} to search
19 * for.
20 * </p>
21 * <p>
22 * This class is not intended to be instantiated or subclassed by clients.
23 * </p>
24 *
25 * @see org.eclipse.jdt.ui.search.QuerySpecification
26 *
27 * @since 3.0
28 *
29 * @noinstantiate This class is not intended to be instantiated by clients.
30 * @noextend This class is not intended to be subclassed by clients.
31 */
32public class ElementQuerySpecification extends QuerySpecification {
33 private IJavaElement fElement;
34
35 /**
36 * A constructor.
37 * @param javaElement The java element the query should search for.
38 * @param limitTo The kind of occurrence the query should search for.
39 * @param scope The scope to search in.
40 * @param scopeDescription A human readable description of the search scope.
41 */
42 public ElementQuerySpecification(IJavaElement javaElement, int limitTo, IJavaSearchScope scope, String scopeDescription) {
43 super(limitTo, scope, scopeDescription);
44 fElement= javaElement;
45 }
46
47 /**
48 * Returns the element to search for.
49 * @return The element to search for.
50 */
51 public IJavaElement getElement() {
52 return fElement;
53 }
54}