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

Method load_primitive_class

src/ch09/rtda/heap/ClassLoader.py:213–230  ·  view source on GitHub ↗

有3点说明:1. void和基本类型的类名就是void、int、float等。 2. 基本类型的类没有超类,也没有实现任何接口。 3. 非基本类型的类对象是通过ldc指令加载到操作数栈中的。 而基本类型的类对象,虽然在Java代码中看起来是通过字面量获取的,但是编译之后的指令并不是ldc,而是getstatic。 :param class_name: :return:

(self, class_name)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Calls 2

ClassClass · 0.90
new_objectMethod · 0.45

Tested by

no test coverage detected