Interface ICompletionContext

All Superinterfaces:
IScriptEngineProvider
All Known Implementing Classes:
BasicContext, JavaScriptCompletionContext, PythonCompletionContext

public interface ICompletionContext extends IScriptEngineProvider
  • Method Details

    • getTokens

      List<Object> 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

      boolean isStringLiteral(String input)
    • isValid

      boolean isValid()
    • getScriptType

      ScriptType getScriptType()
    • getResource

      Object getResource()