com.adobe.flexbuilder.codemodel.search
Interface IDefinitionOccurrence

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IDefinitionRelativeLocation, IOccurrence
All Known Subinterfaces:
ISWCOccurrence

public interface IDefinitionOccurrence
extends IOccurrence, IDefinitionRelativeLocation

Represents an occurrence that maps to an IDefinition

Author:
dz

Method Summary
 IDefinition getDefinition()
           
 boolean isAccessorMatch()
           
 boolean isDeclaration()
           
 boolean isInstance()
           
 boolean isReference()
           
 
Methods inherited from interface com.adobe.flexbuilder.codemodel.search.IOccurrence
getEnd, getFileSpecification, getLength, getMatchPotential, getPath, getStart, isConfirmedMatch
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface com.adobe.flexbuilder.codemodel.search.IDefinitionRelativeLocation
getContainer, getContainingDefinition, getPackage, setContainer, setContainingDefinition
 

Method Detail

isInstance

public boolean isInstance()
Returns:
true if this is the identifier we are searching against

isDeclaration

public boolean isDeclaration()
Returns:
true if this is a declaration and a reference

isAccessorMatch

public boolean isAccessorMatch()
Returns:
true if this is a match to an accessor, so true if we are searching for a getter node or a setter node

isReference

public boolean isReference()
Returns:
true if this is a reference

getDefinition

public IDefinition getDefinition()
Returns:
the definition instance at this occurrence