Enum Class DunderOpDescriptor

java.lang.Object
java.lang.Enum<DunderOpDescriptor>
ai.timefold.jpyinterpreter.opcodes.descriptor.DunderOpDescriptor
All Implemented Interfaces:
OpcodeDescriptor, Serializable, Comparable<DunderOpDescriptor>, Constable

public enum DunderOpDescriptor extends Enum<DunderOpDescriptor> implements OpcodeDescriptor
  • Enum Constant Details

    • COMPARE_OP

      public static final DunderOpDescriptor COMPARE_OP
    • UNARY_NOT

      public static final DunderOpDescriptor UNARY_NOT
      Implements TOS = not TOS.
    • BINARY_OP

      public static final DunderOpDescriptor BINARY_OP
      Implements any binary op. Its argument represent the arg to implement, which may or may not be inplace.
    • UNARY_POSITIVE

      public static final DunderOpDescriptor UNARY_POSITIVE
      Implements TOS = +TOS.
    • UNARY_NEGATIVE

      public static final DunderOpDescriptor UNARY_NEGATIVE
      Implements TOS = -TOS.
    • UNARY_INVERT

      public static final DunderOpDescriptor UNARY_INVERT
      Implements TOS = ~TOS.
    • BINARY_POWER

      public static final DunderOpDescriptor BINARY_POWER
      Implements TOS = TOS1 ** TOS.
    • BINARY_MULTIPLY

      public static final DunderOpDescriptor BINARY_MULTIPLY
      Implements TOS = TOS1 * TOS.
    • BINARY_MATRIX_MULTIPLY

      public static final DunderOpDescriptor BINARY_MATRIX_MULTIPLY
      Implements TOS = TOS1 @ TOS.
    • BINARY_FLOOR_DIVIDE

      public static final DunderOpDescriptor BINARY_FLOOR_DIVIDE
      Implements TOS = TOS1 // TOS.
    • BINARY_TRUE_DIVIDE

      public static final DunderOpDescriptor BINARY_TRUE_DIVIDE
      Implements TOS = TOS1 / TOS.
    • BINARY_MODULO

      public static final DunderOpDescriptor BINARY_MODULO
      Implements TOS = TOS1 % TOS.
    • BINARY_ADD

      public static final DunderOpDescriptor BINARY_ADD
      Implements TOS = TOS1 + TOS.
    • BINARY_SUBTRACT

      public static final DunderOpDescriptor BINARY_SUBTRACT
      Implements TOS = TOS1 - TOS.
    • BINARY_SUBSCR

      public static final DunderOpDescriptor BINARY_SUBSCR
      Implements TOS = TOS1[TOS].
    • BINARY_SLICE

      public static final DunderOpDescriptor BINARY_SLICE
      Implements TOS = TOS2[TOS1:TOS]
    • STORE_SLICE

      public static final DunderOpDescriptor STORE_SLICE
      Implements TOS2[TOS1:TOS] = TOS3
    • BINARY_LSHIFT

      public static final DunderOpDescriptor BINARY_LSHIFT
      Implements TOS = TOS1 << TOS.
    • BINARY_RSHIFT

      public static final DunderOpDescriptor BINARY_RSHIFT
      Implements TOS = TOS1 >> TOS.
    • BINARY_AND

      public static final DunderOpDescriptor BINARY_AND
      Implements TOS = TOS1 & TOS.
    • BINARY_XOR

      public static final DunderOpDescriptor BINARY_XOR
      Implements TOS = TOS1 ^ TOS.
    • BINARY_OR

      public static final DunderOpDescriptor BINARY_OR
      Implements TOS = TOS1 | TOS.
    • INPLACE_POWER

      public static final DunderOpDescriptor INPLACE_POWER
      Implements in-place TOS = TOS1 ** TOS.
    • INPLACE_MULTIPLY

      public static final DunderOpDescriptor INPLACE_MULTIPLY
      Implements in-place TOS = TOS1 * TOS.
    • INPLACE_MATRIX_MULTIPLY

      public static final DunderOpDescriptor INPLACE_MATRIX_MULTIPLY
      Implements in-place TOS = TOS1 @ TOS.
    • INPLACE_FLOOR_DIVIDE

      public static final DunderOpDescriptor INPLACE_FLOOR_DIVIDE
      Implements in-place TOS = TOS1 // TOS.
    • INPLACE_TRUE_DIVIDE

      public static final DunderOpDescriptor INPLACE_TRUE_DIVIDE
      Implements in-place TOS = TOS1 / TOS.
    • INPLACE_MODULO

      public static final DunderOpDescriptor INPLACE_MODULO
      Implements in-place TOS = TOS1 % TOS.
    • INPLACE_ADD

      public static final DunderOpDescriptor INPLACE_ADD
      Implements in-place TOS = TOS1 + TOS.
    • INPLACE_SUBTRACT

      public static final DunderOpDescriptor INPLACE_SUBTRACT
      Implements in-place TOS = TOS1 - TOS.
    • INPLACE_LSHIFT

      public static final DunderOpDescriptor INPLACE_LSHIFT
      Implements in-place TOS = TOS1 << TOS.
    • INPLACE_RSHIFT

      public static final DunderOpDescriptor INPLACE_RSHIFT
      Implements in-place TOS = TOS1 >> TOS.
    • INPLACE_AND

      public static final DunderOpDescriptor INPLACE_AND
      Implements in-place TOS = TOS1 & TOS.
    • INPLACE_XOR

      public static final DunderOpDescriptor INPLACE_XOR
      Implements in-place TOS = TOS1 ^ TOS.
    • INPLACE_OR

      public static final DunderOpDescriptor INPLACE_OR
      Implements in-place TOS = TOS1 | TOS.
  • Method Details

    • values

      public static DunderOpDescriptor[] 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 DunderOpDescriptor 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
    • getVersionMapping

      public VersionMapping getVersionMapping()
      Specified by:
      getVersionMapping in interface OpcodeDescriptor