Enum Class RNCCompletionContext.CompletionContextType
java.lang.Object
java.lang.Enum<RNCCompletionContext.CompletionContextType>
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.completion.RNCCompletionContext.CompletionContextType
- All Implemented Interfaces:
Serializable,Comparable<RNCCompletionContext.CompletionContextType>,Constable
- Enclosing class:
RNCCompletionContext
public static enum RNCCompletionContext.CompletionContextType
extends Enum<RNCCompletionContext.CompletionContextType>
Describes the context in which completion was triggered.
The context determines which set of completion items to offer.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCursor follows an assignment operator (=,|=,&=).Cursor follows theattributekeyword (expecting a name).Cursor follows=inside adatatypesdeclaration.Cursor follows theelementkeyword (expecting a name).Cursor follows theexternalkeyword.Cursor follows theincludekeyword.Cursor follows=inside anamespacedeclaration.Cursor followsstart =.Cursor is inside a comment.Cursor is inside the string literal afterexternal.Cursor is inside the string literal afterinclude.Cursor is inside a pattern (within braces, or after a combining operator).Cursor is at the top level, outside any braces.Fallback when the context cannot be determined. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP_LEVEL
Cursor is at the top level, outside any braces. -
AFTER_ASSIGN
Cursor follows an assignment operator (=,|=,&=). -
AFTER_START_ASSIGN
Cursor followsstart =. Excludes attribute from completions. -
IN_PATTERN
Cursor is inside a pattern (within braces, or after a combining operator). -
AFTER_NAMESPACE_ASSIGN
Cursor follows=inside anamespacedeclaration. -
AFTER_DATATYPES_ASSIGN
Cursor follows=inside adatatypesdeclaration. -
AFTER_INCLUDE
Cursor follows theincludekeyword. -
IN_INCLUDE_LITERAL
Cursor is inside the string literal afterinclude. -
AFTER_EXTERNAL
Cursor follows theexternalkeyword. -
IN_EXTERNAL_LITERAL
Cursor is inside the string literal afterexternal. -
AFTER_ELEMENT_KEYWORD
Cursor follows theelementkeyword (expecting a name). -
AFTER_ATTRIBUTE_KEYWORD
Cursor follows theattributekeyword (expecting a name). -
IN_COMMENT
Cursor is inside a comment. -
UNKNOWN
Fallback when the context cannot be determined.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-