Package ai.timefold.jpyinterpreter.types
Class AbstractPythonLikeObject
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
- All Implemented Interfaces:
PythonLikeObject
- Direct Known Subclasses:
CPythonBackedPythonLikeObject,DelegatePythonIterator,DictItemView,DictKeyView,DictValueView,Ellipsis,NotImplemented,PythonByteArray,PythonBytes,PythonCell,PythonCode,PythonComplex,PythonDate,PythonDecimal,PythonFloat,PythonGenerator,PythonInteger,PythonLikeDict,PythonLikeFrozenSet,PythonLikeList,PythonLikeSet,PythonLikeTuple,PythonModule,PythonNone,PythonRange,PythonSlice,PythonString,PythonSuperObject,PythonTime,PythonTimeDelta,PythonTraceback,PythonTzinfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPythonLikeObject(PythonLikeType __type__) AbstractPythonLikeObject(PythonLikeType __type__, Map<String, PythonLikeObject> __dir__) -
Method Summary
Modifier and TypeMethodDescriptionvoid$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.voidsetAttribute(String attributeName, PythonLikeObject value) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
OBJECT_TYPE
-
-
Constructor Details
-
AbstractPythonLikeObject
-
AbstractPythonLikeObject
-
-
Method Details
-
$getAttributeOrNull
Description copied from interface:PythonLikeObjectGets an attribute by name.- Specified by:
$getAttributeOrNullin interfacePythonLikeObject- 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 interfacePythonLikeObject- 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 interfacePythonLikeObject- Parameters:
attributeName- Name of the attribute to delete
-
$getType
Description copied from interface:PythonLikeObjectReturns the type describing the object- Specified by:
$getTypein interfacePythonLikeObject- Returns:
- the type describing the object
-
setAttribute
-
getExtraAttributeMap
-
toString
-