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 reference.
17: * The element is the inner-most enclosing member that references this package.
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 PackageReferenceMatch extends SearchMatch {
25:
26: /**
27: * Creates a new package reference match.
28: *
29: * @param enclosingElement the inner-most enclosing member that references this package
30: * @param accuracy one of {@link #A_ACCURATE} or {@link #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 insideDocComment <code>true</code> if this search match is inside a doc
34: * comment, and <code>false</code> otherwise
35: * @param participant the search participant that created the match
36: * @param resource the resource of the element
37: */
38: public PackageReferenceMatch(IJavaElement enclosingElement,
39: int accuracy, int offset, int length,
40: boolean insideDocComment, SearchParticipant participant,
41: IResource resource) {
42: super(enclosingElement, accuracy, offset, length, participant,
43: resource);
44: setInsideDocComment(insideDocComment);
45: }
46: }
|