Package org.eclipse.lsp4j
Enum CompletionTriggerKind
- java.lang.Object
-
- java.lang.Enum<CompletionTriggerKind>
-
- org.eclipse.lsp4j.CompletionTriggerKind
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CompletionTriggerKind>
public enum CompletionTriggerKind extends java.lang.Enum<CompletionTriggerKind>
How a completion was triggered
-
-
Enum Constant Summary
Enum Constants Enum Constant Description InvokedCompletion was triggered by typing an identifier (24x7 code complete), manual invocation (e.g Ctrl+Space) or via API.TriggerCharacterCompletion was triggered by a trigger character specified by the `triggerCharacters` properties of the `CompletionRegistrationOptions`.TriggerForIncompleteCompletionsCompletion was re-triggered as the current completion list is incomplete.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompletionTriggerKindforValue(int value)intgetValue()static CompletionTriggerKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CompletionTriggerKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 the current completion list is incomplete.Since 3.6.0
-
-
Method Detail
-
values
public static CompletionTriggerKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompletionTriggerKind c : CompletionTriggerKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompletionTriggerKind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
-
forValue
public static CompletionTriggerKind forValue(int value)
-
-