KickJava   Java API By Example, From Geeks To Geeks.

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


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 declaration.
18  * The element is an <code>IPackageFragment</code>.
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 PackageDeclarationMatch extends SearchMatch {
26
27     /**
28      * Creates a new package declaration match.
29      *
30      * @param element the package declaration
31      * @param accuracy one of A_ACCURATE or 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 participant the search participant that created the match
35      * @param resource the resource of the element
36      */

37     public PackageDeclarationMatch(IJavaElement element, int accuracy, int offset, int length, SearchParticipant participant, IResource resource) {
38         super(element, accuracy, offset, length, participant, resource);
39     }
40
41 }
42
Popular Tags