Class BinaryDunderBuiltin
java.lang.Object
ai.timefold.jpyinterpreter.builtins.BinaryDunderBuiltin
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BinaryDunderBuiltinstatic final BinaryDunderBuiltinstatic final BinaryDunderBuiltinstatic final BinaryDunderBuiltinstatic final BinaryDunderBuiltinstatic final BinaryDunderBuiltinstatic final BinaryDunderBuiltin -
Constructor Summary
ConstructorsConstructorDescriptionBinaryDunderBuiltin(PythonBinaryOperator operator) BinaryDunderBuiltin(String dunderMethodName) -
Method Summary
Modifier and TypeMethodDescription$call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Calls the function with positional arguments and named arguments.invoke(PythonLikeObject object, PythonLikeObject arg) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.types.PythonLikeFunction
$deleteAttribute, $getAttributeOrNull, $getType, $setAttributeMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__, $method$__str__
-
Field Details
-
DIVMOD
-
ADD
-
LESS_THAN
-
GET_ITEM
-
GET_ATTRIBUTE
-
POWER
-
FORMAT
-
-
Constructor Details
-
BinaryDunderBuiltin
-
BinaryDunderBuiltin
-
-
Method Details
-
$call
public PythonLikeObject $call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Description copied from interface:PythonLikeFunctionCalls the function with positional arguments and named arguments.- Specified by:
$callin interfacePythonLikeFunction- Parameters:
positionalArguments- Positional argumentsnamedArguments- Named argumentscallerInstance- The first argument passed to the caller, if any; null otherwise (used for super)- Returns:
- The function result
-
invoke
-