JVM Java字节码方法表与属性

方法表

methods_count

 method_info,前三个字段和field_info一样

2、方法的属性结构

方法中的每个属性都是一个attribut_info结构

JVM定义了部分attribute,但是编译器自己也可以实现自己的attribute写入class文件里,供运行时使用。

不同的attribute通过attribute_name_index来区分。

猜你喜欢

转载自www.cnblogs.com/linlf03/p/11080389.html