KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > core > search > PackageReferenceMatch


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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  *******************************************************************************/

11 package org.eclipse.jdt.core.search;
12
13 import org.eclipse.core.resources.IResource;
14 import org.eclipse.jdt.core.IJavaElement;
15
16 /**
17  * A Java search match that represents a package reference.
18  * The element is the inner-most enclosing member that references this package.
19  * <p>
20  * This class is intended to be instantiated and subclassed by clients.
21  * </p>
22  *
23  * @since 3.0
24  */

25 public class PackageReferenceMatch extends SearchMatch {
26
27     /**
28      * Creates a new package reference match.
29      *
30      * @param enclosingElement the inner-most enclosing member that references this package
31      * @param accuracy one of {@link #A_ACCURATE} or {@link #A_INACCURATE}
32      * @param offset the offset the match starts at, or -1 if unknown
33      * @param length the length of the match, or -1 if unknown
34      * @param insideDocComment <code>true</code> if this search match is inside a doc
35      * comment, and <code>false</code> otherwise
36      * @param participant the search participant that created the match
37      * @param resource the resource of the element
38      */

39     public PackageReferenceMatch(IJavaElement enclosingElement, int accuracy, int offset, int length, boolean insideDocComment, SearchParticipant participant, IResource resource) {
40         super(enclosingElement, accuracy, offset, length, participant, resource);
41         setInsideDocComment(insideDocComment);
42     }
43 }
44
Popular Tags