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 String
getFilter()
Get a text filter to be applied for the current input.List<ModuleDefinition>
getLoadedModules()
Get all loaded modules.int
getReplaceLength()
int
getReplaceOffset()
Object
getResource()
ScriptType
getScriptType()
String
getText()
List<Object>
getTokens()
boolean
isStringLiteral(String input)
boolean
isValid()
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()
-