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

Method is_accessible_to

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

如果类D想访问类C,需要满足两个条件之一:C是pubilc,或者C和D在同一个运行时包内。 :param otherClass: :return:

(self, otherClass)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

resolve_class_refMethod · 0.45
resolve_method_refMethod · 0.45
resolve_field_refMethod · 0.45

Calls 2

is_publicMethod · 0.95
get_package_nameMethod · 0.95

Tested by

no test coverage detected