java.lang.Object
java.lang.Enum<BslOperator>
com.github._1c_syntax.bsl.languageserver.utils.expressiontree.BslOperator
All Implemented Interfaces:
Serializable, Comparable<BslOperator>, Constable

public enum BslOperator extends Enum<BslOperator>
Операторы языка BSL.

Перечисление всех операторов с указанием их приоритета выполнения. Меньшее значение приоритета означает более раннее выполнение.

  • Enum Constant Details

    • OR

      public static final BslOperator OR
      Логическое ИЛИ (приоритет 1).
    • AND

      public static final BslOperator AND
      Логическое И (приоритет 2).
    • NOT

      public static final BslOperator NOT
      Логическое НЕ (приоритет 3).
    • EQUAL

      public static final BslOperator EQUAL
      Равно (приоритет 4).
    • LESS

      public static final BslOperator LESS
      Меньше (приоритет 4).
    • LESS_OR_EQUAL

      public static final BslOperator LESS_OR_EQUAL
      Меньше или равно (приоритет 4).
    • GREATER

      public static final BslOperator GREATER
      Больше (приоритет 4).
    • GREATER_OR_EQUAL

      public static final BslOperator GREATER_OR_EQUAL
      Больше или равно (приоритет 4).
    • NOT_EQUAL

      public static final BslOperator NOT_EQUAL
      Не равно (приоритет 4).
    • ADD

      public static final BslOperator ADD
      Сложение (приоритет 5).
    • SUBTRACT

      public static final BslOperator SUBTRACT
      Вычитание (приоритет 5).
    • MULTIPLY

      public static final BslOperator MULTIPLY
      Умножение (приоритет 6).
    • DIVIDE

      public static final BslOperator DIVIDE
      Деление (приоритет 6).
    • MODULO

      public static final BslOperator MODULO
      Остаток от деления (приоритет 6).
    • UNARY_MINUS

      public static final BslOperator UNARY_MINUS
      Унарный минус (приоритет 7).
    • UNARY_PLUS

      public static final BslOperator UNARY_PLUS
    • DEREFERENCE

      public static final BslOperator DEREFERENCE
    • INDEX_ACCESS

      public static final BslOperator INDEX_ACCESS
  • Method Details

    • values

      public static BslOperator[] 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 BslOperator 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
    • getPriority

      public int getPriority()