Package ai.timefold.jpyinterpreter
Enum Class PythonBinaryOperator
- All Implemented Interfaces:
Serializable,Comparable<PythonBinaryOperator>,Constable
The list of all Python Binary Operators, which are performed
by calling the left operand's corresponding dunder method on the
right operand
ex: a.__add__(b)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal PythonBinaryOperatorfinal booleanfinal Stringfinal String -
Method Summary
Modifier and TypeMethodDescriptionstatic BinaryDunderOpcodegetBinaryOpcode(PythonBytecodeInstruction instruction) booleanbooleanstatic PythonBinaryOperatorReturns the enum constant of this class with the specified name.static PythonBinaryOperator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LESS_THAN
-
LESS_THAN_OR_EQUAL
-
GREATER_THAN
-
GREATER_THAN_OR_EQUAL
-
EQUAL
-
NOT_EQUAL
-
POWER
-
MULTIPLY
-
MATRIX_MULTIPLY
-
FLOOR_DIVIDE
-
TRUE_DIVIDE
-
MODULO
-
ADD
-
SUBTRACT
-
LSHIFT
-
RSHIFT
-
AND
-
XOR
-
OR
-
INPLACE_POWER
-
INPLACE_MULTIPLY
-
INPLACE_MATRIX_MULTIPLY
-
INPLACE_FLOOR_DIVIDE
-
INPLACE_TRUE_DIVIDE
-
INPLACE_MODULO
-
INPLACE_ADD
-
INPLACE_SUBTRACT
-
INPLACE_LSHIFT
-
INPLACE_RSHIFT
-
INPLACE_AND
-
INPLACE_XOR
-
INPLACE_OR
-
GET_ITEM
-
DELETE_ITEM
-
SEND
-
THROW
-
CONTAINS
-
DELETE
-
GET_ATTRIBUTE
-
GET_ATTRIBUTE_NOT_IN_SLOTS
-
DELETE_ATTRIBUTE
-
FORMAT
-
DIVMOD
-
-
Field Details
-
operatorSymbol
-
dunderMethod
-
rightDunderMethod
-
isComparisonMethod
public final boolean isComparisonMethod -
fallbackOperation
-
-
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
-
getOperatorSymbol
-
getDunderMethod
-
getRightDunderMethod
-
hasRightDunderMethod
public boolean hasRightDunderMethod() -
isComparisonMethod
public boolean isComparisonMethod() -
getFallbackOperation
-
getBinaryOpcode
-