Class CPythonType
java.lang.Object
ai.timefold.jpyinterpreter.types.PythonLikeType
ai.timefold.jpyinterpreter.types.wrappers.CPythonType
- All Implemented Interfaces:
PythonLikeObject,PythonLikeFunction
-
Field Summary
Fields inherited from class ai.timefold.jpyinterpreter.types.PythonLikeType
__dir__, MRO -
Method Summary
Modifier and TypeMethodDescription$call(List<PythonLikeObject> positionalArguments, Map<PythonString, PythonLikeObject> namedArguments, PythonLikeObject callerInstance) Calls the function with positional arguments and named arguments.void$deleteAttribute(String attributeName) Delete an attribute by name.$getAttributeOrNull(String attributeName) Gets an attribute by name.$getType()Returns the type describing the objectvoid$setAttribute(String attributeName, PythonLikeObject value) Sets an attribute by name.static CPythonTypegetType(OpaquePythonReference typeReference) static CPythonTypelookupTypeOfPythonObject(OpaquePythonReference reference) Methods inherited from class ai.timefold.jpyinterpreter.types.PythonLikeType
$getGenericType, $method$__getattribute__, $method$__str__, addBinaryMethod, addBinaryMethod, addConstructor, addInstanceField, addLeftBinaryMethod, addLeftBinaryMethod, addMethod, addMethod, addRightBinaryMethod, addRightBinaryMethod, addTernaryMethod, addTernaryMethod, addUnaryMethod, addUnaryMethod, clearMethod, equals, getConstructorType, getDefiningTypeOrNull, getDepth, getInstanceFieldDescriptor, getJavaClass, getJavaClassOrDefault, getJavaObjectWrapperType, getJavaTypeDescriptor, getJavaTypeInternalName, getKnownMethods, getKnownMethodsDefinedByClass, getMethodKind, getMethodType, getParentList, getTypeForNewClass, getTypeName, hashCode, initializeNewType, isInstance, isSubclassOf, loadMethod, registerBaseType, registerTypeType, setConstructor, toString, unifyWithMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__
-
Method Details
-
lookupTypeOfPythonObject
-
getType
-
$getAttributeOrNull
Description copied from interface:PythonLikeObjectGets an attribute by name.- Specified by:
$getAttributeOrNullin interfacePythonLikeFunction- Specified by:
$getAttributeOrNullin interfacePythonLikeObject- Overrides:
$getAttributeOrNullin classPythonLikeType- Parameters:
attributeName- Name of the attribute to get- Returns:
- The attribute of the object that corresponds with attributeName
-
$setAttribute
Description copied from interface:PythonLikeObjectSets an attribute by name.- Specified by:
$setAttributein interfacePythonLikeFunction- Specified by:
$setAttributein interfacePythonLikeObject- Overrides:
$setAttributein classPythonLikeType- Parameters:
attributeName- Name of the attribute to setvalue- Value to set the attribute to
-
$deleteAttribute
Description copied from interface:PythonLikeObjectDelete an attribute by name.- Specified by:
$deleteAttributein interfacePythonLikeFunction- Specified by:
$deleteAttributein interfacePythonLikeObject- Overrides:
$deleteAttributein classPythonLikeType- Parameters:
attributeName- Name of the attribute to delete
-
$getType
Description copied from interface:PythonLikeObjectReturns the type describing the object- Specified by:
$getTypein interfacePythonLikeFunction- Specified by:
$getTypein interfacePythonLikeObject- Overrides:
$getTypein classPythonLikeType- Returns:
- the type describing the object
-
$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- Overrides:
$callin classPythonLikeType- Parameters:
positionalArguments- Positional argumentsnamedArguments- Named argumentscallerInstance- The first argument passed to the caller, if any; null otherwise (used for super)- Returns:
- The function result
-
getPythonReference
-