Package org.eclipse.ease
Interface ICompletionContext
- All Superinterfaces:
IScriptEngineProvider
- All Known Implementing Classes:
BasicContext,JavaScriptCompletionContext,PythonCompletionContext
public interface ICompletionContext extends IScriptEngineProvider
-
Method Summary
Modifier and Type Method Description StringgetFilter()Get a text filter to be applied for the current input.List<ModuleDefinition>getLoadedModules()Get all loaded modules.intgetReplaceLength()intgetReplaceOffset()ObjectgetResource()ScriptTypegetScriptType()StringgetText()List<Object>getTokens()booleanisStringLiteral(String input)booleanisValid()Methods inherited from interface org.eclipse.ease.IScriptEngineProvider
getScriptEngine
-
Method Details
-
getTokens
-
getText
String getText() -
getReplaceOffset
int getReplaceOffset() -
getReplaceLength
int getReplaceLength() -
getLoadedModules
List<ModuleDefinition> getLoadedModules()Get all loaded modules.- Returns:
- loaded modules
-
getFilter
String getFilter()Get a text filter to be applied for the current input. This is the prefix of the expected completion proposals.- Returns:
- filter text or empty string
-
isStringLiteral
-
isValid
boolean isValid() -
getScriptType
ScriptType getScriptType() -
getResource
Object getResource()
-