org.eclipse.wst.jsdt.core.infer
Interface InferrenceProvider

All Known Implementing Classes:
DefaultInferrenceProvider

public interface InferrenceProvider

Implemented by extenders of org.eclipse.wst.jsdt.core.infer.inferrenceSupport extension point Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
static int MAYBE_THIS
           
static int NOT_THIS
           
static int ONLY_THIS
           
 
Method Summary
 int applysTo(IInferenceFile scriptFile)
          Determine if this inference provider applies to a script
 java.lang.String getID()
          Get the inference provider ID
 InferEngine getInferEngine()
          Get the inference engine for this inference provider
 RefactoringSupport getRefactoringSupport()
           
 ResolutionConfiguration getResolutionConfiguration()
           
 

Field Detail

ONLY_THIS

static final int ONLY_THIS
See Also:
Constant Field Values

NOT_THIS

static final int NOT_THIS
See Also:
Constant Field Values

MAYBE_THIS

static final int MAYBE_THIS
See Also:
Constant Field Values
Method Detail

getInferEngine

InferEngine getInferEngine()
Get the inference engine for this inference provider

Returns:
Inference engine

applysTo

int applysTo(IInferenceFile scriptFile)
Determine if this inference provider applies to a script

Parameters:
scriptFile - The script that the inferencing will be done for
Returns:
InferrenceProvider.ONLY_THIS, InferrenceProvider.NOT_THIS, or InferrenceProvider.MAYBE_THIS, depending on how much this inference provider applies to the specified script.

getID

java.lang.String getID()
Get the inference provider ID

Returns:
the id of this inference provider

getResolutionConfiguration

ResolutionConfiguration getResolutionConfiguration()
Returns:
the ResolutionConfiguration used to resolve the inferred classes

getRefactoringSupport

RefactoringSupport getRefactoringSupport()
Returns:
the RefactoringSupport used to provide refactoring for the inferred type.