Package ai.timefold.jpyinterpreter.types
Class CPythonBackedPythonLikeObject
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.CPythonBackedPythonLikeObject
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
- Direct Known Subclasses:
PythonObjectWrapper
public class CPythonBackedPythonLikeObject
extends AbstractPythonLikeObject
implements PythonLikeFunction
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__) CPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__, OpaquePythonReference reference) CPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__, Map<String, PythonLikeObject> __dir__) CPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__, Map<String, PythonLikeObject> __dir__, OpaquePythonReference reference) -
Method Summary
Modifier and TypeMethodDescription$call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Calls the function with positional arguments and named arguments.voidvoid$setCPythonReference(OpaquePythonReference pythonReference) void$setInstanceMap(Map<Number, PythonLikeObject> $instanceMap) booleanvoidMethods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttribute, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
-
CPYTHON_BACKED_OBJECT_TYPE
-
$cpythonReference
-
$cpythonId
-
$instanceMap
-
-
Constructor Details
-
CPythonBackedPythonLikeObject
-
CPythonBackedPythonLikeObject
public CPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__, Map<String, PythonLikeObject> __dir__) -
CPythonBackedPythonLikeObject
public CPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__, OpaquePythonReference reference) -
CPythonBackedPythonLikeObject
public CPythonBackedPythonLikeObject(PythonInterpreter interpreter, PythonLikeType __type__, Map<String, PythonLikeObject> __dir__, OpaquePythonReference reference)
-
-
Method Details
-
$getCPythonReference
-
$setCPythonReference
-
$getCPythonId
-
$getInstanceMap
-
$setInstanceMap
-
$shouldCreateNewInstance
public boolean $shouldCreateNewInstance() -
$readFieldsFromCPythonReference
public void $readFieldsFromCPythonReference() -
$writeFieldsToCPythonReference
-
$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
-