Enum Class CompletionTriggerKind

java.lang.Object
java.lang.Enum<CompletionTriggerKind>
org.graalvm.tools.lsp.server.types.CompletionTriggerKind
All Implemented Interfaces:
Serializable, Comparable<CompletionTriggerKind>, Constable

public enum CompletionTriggerKind extends Enum<CompletionTriggerKind>
How a completion was triggered.
  • Enum Constant Details

    • Invoked

      public static final CompletionTriggerKind Invoked
      Completion was triggered by typing an identifier (24x7 code complete), manual invocation (e.g Ctrl+Space) or via API.
    • TriggerCharacter

      public static final CompletionTriggerKind TriggerCharacter
      Completion was triggered by a trigger character specified by the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
    • TriggerForIncompleteCompletions

      public static final CompletionTriggerKind TriggerForIncompleteCompletions
      Completion was re-triggered as current completion list is incomplete.
  • Method Details

    • values

      public static CompletionTriggerKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CompletionTriggerKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
    • get

      public static CompletionTriggerKind get(Integer intValue)