blob: e928fbb0fb4d3741163cff3942bc828e39268d5c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.core.search;
import org.eclipse.core.resources.IResource;
import org.eclipse.jdt.core.IJavaElement;
/**
* A Java search match that represents a package reference.
* The element is the inner-most enclosing member that references this package.
*
* @since 3.0
*/
public class PackageReferenceMatch extends SearchMatch {
/**
* Creates a new package reference match.
*
* @param enclosingElement the inner-most enclosing member that references this package
* @param accuracy one of A_ACCURATE or A_INACCURATE
* @param sourceStart the start position of the match, -1 if it is unknown
* @param sourceEnd the end position of the match, -1 if it is unknown;
* the ending offset is exclusive, meaning that the actual range of characters
* covered is <code>[start, end]</code>
* @param participant the search participant that created the match
* @param resource the resource of the element
*/
public PackageReferenceMatch(IJavaElement enclosingElement, int accuracy, int sourceStart, int sourceEnd, SearchParticipant participant, IResource resource) {
super(enclosingElement, accuracy, sourceStart, sourceEnd, participant, resource);
}
}