Class JavaObjectWrapper
java.lang.Object
ai.timefold.jpyinterpreter.types.wrappers.JavaObjectWrapper
- All Implemented Interfaces:
PythonLikeObject,Comparable<JavaObjectWrapper>,Iterable<JavaObjectWrapper>
public class JavaObjectWrapper
extends Object
implements PythonLikeObject, Iterable<JavaObjectWrapper>, Comparable<JavaObjectWrapper>
-
Constructor Summary
ConstructorsConstructorDescriptionJavaObjectWrapper(Object wrappedObject) JavaObjectWrapper(Object wrappedObject, Map<Object, PythonLikeObject> convertedObjectMap) -
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.intcompareTo(JavaObjectWrapper javaObjectWrapper) booleanstatic PythonLikeTypegetPythonTypeForClass(Class<?> objectClass) static PythonLikeTypegetPythonTypeForClass(Class<?> objectClass, Map<Object, PythonLikeObject> convertedObjectMap) inthashCode()iterator()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__, $method$__str__
-
Constructor Details
-
JavaObjectWrapper
-
JavaObjectWrapper
-
-
Method Details
-
getPythonTypeForClass
-
getPythonTypeForClass
public static PythonLikeType getPythonTypeForClass(Class<?> objectClass, Map<Object, PythonLikeObject> convertedObjectMap) -
getWrappedObject
-
$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
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaObjectWrapper>
-
iterator
- Specified by:
iteratorin interfaceIterable<JavaObjectWrapper>
-
toString
-
equals
-
hashCode
public int hashCode() -
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-