java.lang.Object
java.lang.Enum<Precedence>
org.benf.cfr.reader.bytecode.analysis.parse.expression.misc.Precedence
All Implemented Interfaces:
Serializable, Comparable<Precedence>, Constable

public enum Precedence extends Enum<Precedence>
  • Enum Constant Details

    • HIGHEST

      public static final Precedence HIGHEST
    • PAREN_SUB_MEMBER

      public static final Precedence PAREN_SUB_MEMBER
    • LAMBDA

      public static final Precedence LAMBDA
    • UNARY_POST

      public static final Precedence UNARY_POST
    • UNARY_OTHER

      public static final Precedence UNARY_OTHER
    • MUL_DIV_MOD

      public static final Precedence MUL_DIV_MOD
    • ADD_SUB

      public static final Precedence ADD_SUB
    • BITWISE_SHIFT

      public static final Precedence BITWISE_SHIFT
    • REL_CMP_INSTANCEOF

      public static final Precedence REL_CMP_INSTANCEOF
    • REL_EQ

      public static final Precedence REL_EQ
    • BIT_AND

      public static final Precedence BIT_AND
    • BIT_XOR

      public static final Precedence BIT_XOR
    • BIT_OR

      public static final Precedence BIT_OR
    • LOG_AND

      public static final Precedence LOG_AND
    • LOG_OR

      public static final Precedence LOG_OR
    • CONDITIONAL

      public static final Precedence CONDITIONAL
    • ASSIGNMENT

      public static final Precedence ASSIGNMENT
    • WEAKEST

      public static final Precedence WEAKEST
  • Field Details

    • isLtoR

      private final boolean isLtoR
    • commute

      private final boolean commute
  • Constructor Details

    • Precedence

      private Precedence(boolean ltoR)
    • Precedence

      private Precedence(boolean ltoR, boolean commute)
  • Method Details

    • values

      public static Precedence[] 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 Precedence 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
    • isLtoR

      public boolean isLtoR()
    • isCommutative

      public boolean isCommutative()