Enum Class StringContext
java.lang.Object
java.lang.Enum<StringContext>
com.github._1c_syntax.bsl.languageserver.semantictokens.strings.StringContext
- All Implemented Interfaces:
Serializable, Comparable<StringContext>, Constable
Контекст строки для определения типа обработки.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionСтрока в контексте вызова НСтр/NStr.Строка в контексте вызова НСтр/NStr внутри СтрШаблон/StrTemplate или наоборот.Строка в контексте вызова СтрШаблон/StrTemplate. -
Method Summary
Modifier and TypeMethodDescriptioncombine(StringContext other) Объединяет два контекста.static StringContextReturns the enum constant of this class with the specified name.static StringContext[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NSTR
Строка в контексте вызова НСтр/NStr. -
STR_TEMPLATE
Строка в контексте вызова СтрШаблон/StrTemplate. -
NSTR_AND_STR_TEMPLATE
Строка в контексте вызова НСтр/NStr внутри СтрШаблон/StrTemplate или наоборот. Например: СтрШаблон(НСтр("ru = 'Текст %1'"), Параметр)
-
-
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
-
combine
Объединяет два контекста. Если контексты разные (NSTR и STR_TEMPLATE), возвращает NSTR_AND_STR_TEMPLATE.- Parameters:
other- другой контекст для объединения- Returns:
- объединённый контекст
-