Class Ek9LanguageWords.KeyWordInformation

java.lang.Object
org.ek9lang.lsp.Ek9LanguageWords.KeyWordInformation
Enclosing class:
Ek9LanguageWords

public static class Ek9LanguageWords.KeyWordInformation extends Object
Holds information relating to the EK9 language keywords.
  • Field Details

    • hoverText

      public final String hoverText
  • Constructor Details

    • KeyWordInformation

      public KeyWordInformation(String hover, List<String> completions, Function<TokenResult,Boolean> inContext)
      Create key word info in terms of hover text, completions for a context of use.
    • KeyWordInformation

      public KeyWordInformation(String hover, List<String> completions)
  • Method Details

    • isValidInThisContext

      public boolean isValidInThisContext(TokenResult tokenResult)
      Check if a token is valid in a particular context of use.