|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InferrenceProvider
Implemented by contributors to the 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
Indicates that this InferrenceProvider, and its engine, should also apply to a script file. |
static int |
NOT_THIS
Indicates that this InferrenceProvider, and its engine, do not apply to a script file. |
static int |
ONLY_THIS
Indicates that this InferrenceProvider, and its engine, are the only ones that should apply to a script file. |
Method Summary | |
---|---|
int |
applysTo(IInferenceFile scriptFile)
Determine if this inference provider applies to a script |
java.lang.String |
getID()
Get the inference provider ID |
IInferEngine |
getInferEngine()
Get the inference engine for this inference provider, or null if one will not be provided. |
RefactoringSupport |
getRefactoringSupport()
|
ResolutionConfiguration |
getResolutionConfiguration()
|
Field Detail |
---|
static final int ONLY_THIS
Indicates that this InferrenceProvider, and its engine, are the only ones that should apply to a script file.
Its use is discouraged.
static final int NOT_THIS
Indicates that this InferrenceProvider, and its engine, do not apply to a script file.
static final int MAYBE_THIS
Indicates that this InferrenceProvider, and its engine, should also apply to a script file. As multiple providers may be required and used to completely understand a script file, this value is suggested as a default. Care should then be taken to avoid duplicating the contributions of the default provider.
Method Detail |
---|
IInferEngine getInferEngine()
NOT_THIS
from all calls to getInferEngine()
int applysTo(IInferenceFile scriptFile)
scriptFile
- the script on which the inferencing will be done
ONLY_THIS
, NOT_THIS
, MAYBE_THIS
depending on how much this inference provider applies to the
specified script. See the documentation for each constant for
when each should be used.java.lang.String getID()
ResolutionConfiguration getResolutionConfiguration()
RefactoringSupport getRefactoringSupport()
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |