mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Small change to IMatch
This commit is contained in:
parent
8784493b09
commit
6ed4079125
1 changed files with 21 additions and 10 deletions
|
@ -8,22 +8,18 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* IBM Corp. - Rational Software - initial implementation
|
* IBM Corp. - Rational Software - initial implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
/*
|
|
||||||
* Created on Jul 10, 2003
|
|
||||||
*/
|
|
||||||
package org.eclipse.cdt.core.search;
|
package org.eclipse.cdt.core.search;
|
||||||
|
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author aniefer
|
* Interface used for returning matches from the Search Engine
|
||||||
*
|
*
|
||||||
* To change the template for this generated type comment go to
|
|
||||||
* Window>Preferences>Java>Code Generation>Code and Comments
|
|
||||||
*/
|
*/
|
||||||
public interface IMatch {
|
public interface IMatch {
|
||||||
|
|
||||||
int getElementType();
|
int getElementType();
|
||||||
|
|
||||||
int getVisibility();
|
int getVisibility();
|
||||||
|
@ -35,12 +31,27 @@ public interface IMatch {
|
||||||
IResource getResource();
|
IResource getResource();
|
||||||
|
|
||||||
IPath getLocation();
|
IPath getLocation();
|
||||||
|
|
||||||
IPath getReferenceLocation();
|
|
||||||
|
|
||||||
|
IPath getReferenceLocation();
|
||||||
|
/**
|
||||||
|
* Returns the start offset for this match. Note that clients should use
|
||||||
|
* getOffsetType to determine if this is a LINE or an OFFSET
|
||||||
|
* @return start offset
|
||||||
|
*/
|
||||||
int getStartOffset();
|
int getStartOffset();
|
||||||
|
/**
|
||||||
|
* Returns the end offset for this match. Note that clients should use
|
||||||
|
* getOffsetType to determine if this is a LINE or an OFFSET. The end offset
|
||||||
|
* is meaningless for LINE offsets; instead use IDocument.getLineLength to
|
||||||
|
* figure out the length of the line.
|
||||||
|
* @return end offset
|
||||||
|
*/
|
||||||
int getEndOffset();
|
int getEndOffset();
|
||||||
|
/**
|
||||||
|
* Returns the type of offset either IIndex.LINE or IIndex.OFFSET
|
||||||
|
* @return IIndex.LINE or IIndex.OFFSET
|
||||||
|
*/
|
||||||
|
public int getOffsetType();
|
||||||
|
|
||||||
boolean isStatic();
|
boolean isStatic();
|
||||||
boolean isConst();
|
boolean isConst();
|
||||||
|
|
Loading…
Add table
Reference in a new issue