01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.core.search;
11:
12: import org.eclipse.core.resources.IResource;
13: import org.eclipse.jdt.core.IJavaElement;
14:
15: /**
16: * A Java search match that represents a package declaration.
17: * The element is an <code>IPackageFragment</code>.
18: * <p>
19: * This class is intended to be instantiated and subclassed by clients.
20: * </p>
21: *
22: * @since 3.0
23: */
24: public class PackageDeclarationMatch extends SearchMatch {
25:
26: /**
27: * Creates a new package declaration match.
28: *
29: * @param element the package declaration
30: * @param accuracy one of A_ACCURATE or A_INACCURATE
31: * @param offset the offset the match starts at, or -1 if unknown
32: * @param length the length of the match, or -1 if unknown
33: * @param participant the search participant that created the match
34: * @param resource the resource of the element
35: */
36: public PackageDeclarationMatch(IJavaElement element, int accuracy,
37: int offset, int length, SearchParticipant participant,
38: IResource resource) {
39: super(element, accuracy, offset, length, participant, resource);
40: }
41:
42: }
|