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

public enum StringContext extends Enum<StringContext>
Контекст строки для определения типа обработки.
  • Enum Constant Details

    • NSTR

      public static final StringContext NSTR
      Строка в контексте вызова НСтр/NStr.
    • STR_TEMPLATE

      public static final StringContext STR_TEMPLATE
      Строка в контексте вызова СтрШаблон/StrTemplate.
    • NSTR_AND_STR_TEMPLATE

      public static final StringContext NSTR_AND_STR_TEMPLATE
      Строка в контексте вызова НСтр/NStr внутри СтрШаблон/StrTemplate или наоборот. Например: СтрШаблон(НСтр("ru = 'Текст %1'"), Параметр)
  • Method Details

    • values

      public static StringContext[] 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 StringContext 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
    • combine

      public StringContext combine(StringContext other)
      Объединяет два контекста. Если контексты разные (NSTR и STR_TEMPLATE), возвращает NSTR_AND_STR_TEMPLATE.
      Parameters:
      other - другой контекст для объединения
      Returns:
      объединённый контекст