Package ai.timefold.jpyinterpreter.types
Class BoundPythonLikeFunction
java.lang.Object
ai.timefold.jpyinterpreter.types.BoundPythonLikeFunction
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
-
Constructor Summary
ConstructorsConstructorDescriptionBoundPythonLikeFunction(PythonLikeObject instance, PythonLikeFunction function) -
Method Summary
Modifier and TypeMethodDescription$call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Calls the function with positional arguments and named arguments.static BoundPythonLikeFunctionboundToTypeOfObject(PythonLikeObject instance, PythonLikeFunction function) 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__
-
Constructor Details
-
BoundPythonLikeFunction
-
-
Method Details
-
boundToTypeOfObject
public static BoundPythonLikeFunction boundToTypeOfObject(PythonLikeObject instance, PythonLikeFunction function) -
getInstance
-
$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
-