com.adobe.flexbuilder.codemodel.search
Interface IOccurrence

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
All Known Subinterfaces:
IDefinitionOccurrence, ISWCOccurrence, ITextualOccurrence

public interface IOccurrence
extends org.eclipse.core.runtime.IAdaptable

Represents an instance of a match found in a given input file

Author:
david

Method Summary
 int getEnd()
           
 IFileSpecification getFileSpecification()
           
 int getLength()
           
 double getMatchPotential()
           
 java.lang.String getPath()
           
 int getStart()
           
 boolean isConfirmedMatch()
           
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getPath

public java.lang.String getPath()
Returns:
the absolute path to this match

getStart

public int getStart()
Returns:
the start offset of this match

getEnd

public int getEnd()
Returns:
the end offset of this match

getLength

public int getLength()
Returns:
the length of this match

getMatchPotential

public double getMatchPotential()
Returns:
returns the likelihood, 0-1, that this is a match

isConfirmedMatch

public boolean isConfirmedMatch()
Returns:
true if we know this to be a match

getFileSpecification

public IFileSpecification getFileSpecification()
Returns:
the IFileSpecification for this occurrence