MCPcopy Create free account
hub / github.com/Relph1119/JVMByPython / is_assignable_from

Method is_assignable_from

src/develop_code/rtda/heap/Class.py:125–155  ·  view source on GitHub ↗

在三种情况下,S类型的引用值可以赋值给T类型:S和T是同一类型;T是类且S是T的子类;或者T是接口且S实现了T接口 :param otherClass: :return:

(self, otherClass)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

is_instance_ofMethod · 0.45

Calls 9

is_arrayMethod · 0.45
is_interfaceMethod · 0.45
is_sub_class_ofMethod · 0.45
is_implementsMethod · 0.45
is_jl_objectMethod · 0.45
is_super_interface_ofMethod · 0.45
is_jl_cloneableMethod · 0.45
is_jio_serializableMethod · 0.45
component_classMethod · 0.45

Tested by

no test coverage detected