Class TernaryDunderBuiltin
java.lang.Object
ai.timefold.jpyinterpreter.builtins.TernaryDunderBuiltin
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TernaryDunderBuiltinstatic final TernaryDunderBuiltinstatic final TernaryDunderBuiltin -
Constructor Summary
ConstructorsConstructorDescriptionTernaryDunderBuiltin(PythonTernaryOperator operator) TernaryDunderBuiltin(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 arg1, PythonLikeObject arg2) 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
-
POWER
-
SETATTR
-
GET_DESCRIPTOR
-
-
Constructor Details
-
TernaryDunderBuiltin
-
TernaryDunderBuiltin
-
-
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
public PythonLikeObject invoke(PythonLikeObject object, PythonLikeObject arg1, PythonLikeObject arg2)
-