没有合适的资源?快使用搜索试试~ 我知道了~
[学习笔记]jdk1.7_class文件结构分析
需积分: 9 2 下载量 175 浏览量
2017-11-13
19:18:59
上传
评论
收藏 8KB TXT 举报
温馨提示
试读
8页
jdk1.7_class文件结构分析,常量池分析;jdk1.7_class文件结构分析,常量池分析;
资源推荐
资源详情
资源评论
CA FE BA BE 魔幻数
00 00 次版本
00 32 主版本 50, JDK1.7
00 0F 常量池 15个
0A constant_methodref(10) constant_pool[1].tag
00 03 constant_pool[1].class_index -> 3
00 0C constant_pool[1].name_and_type_index -> 12
07 constant_class(7) constant_pool[2].tag
00 0D constant_pool[2].name_index -> 13
07 constant_class(7) constant_pool[3].tag
00 0E constant_pool[3].name_index -> 14
01 constant_utf8_info(1) constant_pool[4].tag
00 06 constant_pool[4].length -> 6
3C 69 6E 69 74 3E constant_pool[4].bytes[length] -> "<init>"
01 constant_utf8_info(1) constant_pool[5].tag
00 03 constant_pool[5].length -> 3
28 29 56 constant_pool[5].bytes[length] -> "()V"
01 constant_utf8_info(1) constant_pool[6].tag
00 04 constant_pool[6].length -> 4
43 6F 64 65 constant_pool[6].bytes[length] -> "Code"
01 constant_utf8_info(1) constant_pool[7].tag
00 0F constant_pool[7].length -> 15
4C 69 6E 65 4E 75 6D 62 65 72 54 61 62 6C 65 constant_pool[7].bytes[length] -> "LineNumberTable"
01 constant_utf8_info(1) constant_pool[8].tag
00 0D constant_pool[8].length -> 13
64 6F 4D 61 74 68 46 6F 72 65 76 65 72 constant_pool[8].bytes[length] -> "doMathForever"
01 constant_utf8_info(1) constant_pool[9].tag
00 0D constant_pool[9].length -> 13
53 74 61 63 6B 4D 61 70 54 61 62 6C 65 constant_pool[9].bytes[length] -> "StackMapTable"
01 constant_utf8_info(1) constant_pool[10].tag
00 00 次版本
00 32 主版本 50, JDK1.7
00 0F 常量池 15个
0A constant_methodref(10) constant_pool[1].tag
00 03 constant_pool[1].class_index -> 3
00 0C constant_pool[1].name_and_type_index -> 12
07 constant_class(7) constant_pool[2].tag
00 0D constant_pool[2].name_index -> 13
07 constant_class(7) constant_pool[3].tag
00 0E constant_pool[3].name_index -> 14
01 constant_utf8_info(1) constant_pool[4].tag
00 06 constant_pool[4].length -> 6
3C 69 6E 69 74 3E constant_pool[4].bytes[length] -> "<init>"
01 constant_utf8_info(1) constant_pool[5].tag
00 03 constant_pool[5].length -> 3
28 29 56 constant_pool[5].bytes[length] -> "()V"
01 constant_utf8_info(1) constant_pool[6].tag
00 04 constant_pool[6].length -> 4
43 6F 64 65 constant_pool[6].bytes[length] -> "Code"
01 constant_utf8_info(1) constant_pool[7].tag
00 0F constant_pool[7].length -> 15
4C 69 6E 65 4E 75 6D 62 65 72 54 61 62 6C 65 constant_pool[7].bytes[length] -> "LineNumberTable"
01 constant_utf8_info(1) constant_pool[8].tag
00 0D constant_pool[8].length -> 13
64 6F 4D 61 74 68 46 6F 72 65 76 65 72 constant_pool[8].bytes[length] -> "doMathForever"
01 constant_utf8_info(1) constant_pool[9].tag
00 0D constant_pool[9].length -> 13
53 74 61 63 6B 4D 61 70 54 61 62 6C 65 constant_pool[9].bytes[length] -> "StackMapTable"
01 constant_utf8_info(1) constant_pool[10].tag
00 0A constant_pool[10].length -> 10
53 6F 75 72 63 65 46 69 6C 65 constant_pool[10].bytes[length] -> "SourceFile"
01 constant_utf8_info(1) constant_pool[11].tag
00 08 constant_pool[11].length -> 8
41 63 74 2E 6A 61 76 61 constant_pool[11].bytes[length] -> "Act.java"
0C constant_NameAndType(12) constant_pool[12].tag
00 04 constant_pool[12].name_index -> 4
00 05 constant_pool[12].descriptor_index -> 5
01 constant_utf8_info(1) constant_pool[13].tag
00 03 constant_pool[13].length -> 3
41 63 74 constant_pool[13].bytes[length] -> "Act"
01 constant_utf8_info(1) constant_pool[14].tag
00 10 constant_pool[14].length -> 16
6A 61 76 61 2F 6C 61 6E
67 2F 4F 62 6A 65 63 74 constant_pool[14].bytes[length] -> "java/lang/Object"
00 20 access_flags ACC_SUPER 固定值,为了与老版本的java编译器兼容
00 02 this_class constant_pool[constant_pool[2].name_index] -> Act (constant_utf8_info[13])
00 03 super_class constant_pool[constant_pool[3].name_index] -> "java/lang/Object" (constant_utf8_info[14])
00 00 interfaces_count 0
00 00 fields_count 0
00 02 methods_count 2
-----------Method[0]---------------------------------------------
00 00 access_flags 编译器调用
00 04 name_indiex constant_pool[4].bytes[length] -> "<init>"
00 05 descriptor_index constant_pool[5].bytes[length] -> "()V"
00 01 attributes_count 1
00 06 attribute_name_index constant_pool[6].bytes[length] -> "Code"
00 00 00 1D attribute_length 29
00 01 max_stack 1
00 01 max_locals 1
53 6F 75 72 63 65 46 69 6C 65 constant_pool[10].bytes[length] -> "SourceFile"
01 constant_utf8_info(1) constant_pool[11].tag
00 08 constant_pool[11].length -> 8
41 63 74 2E 6A 61 76 61 constant_pool[11].bytes[length] -> "Act.java"
0C constant_NameAndType(12) constant_pool[12].tag
00 04 constant_pool[12].name_index -> 4
00 05 constant_pool[12].descriptor_index -> 5
01 constant_utf8_info(1) constant_pool[13].tag
00 03 constant_pool[13].length -> 3
41 63 74 constant_pool[13].bytes[length] -> "Act"
01 constant_utf8_info(1) constant_pool[14].tag
00 10 constant_pool[14].length -> 16
6A 61 76 61 2F 6C 61 6E
67 2F 4F 62 6A 65 63 74 constant_pool[14].bytes[length] -> "java/lang/Object"
00 20 access_flags ACC_SUPER 固定值,为了与老版本的java编译器兼容
00 02 this_class constant_pool[constant_pool[2].name_index] -> Act (constant_utf8_info[13])
00 03 super_class constant_pool[constant_pool[3].name_index] -> "java/lang/Object" (constant_utf8_info[14])
00 00 interfaces_count 0
00 00 fields_count 0
00 02 methods_count 2
-----------Method[0]---------------------------------------------
00 00 access_flags 编译器调用
00 04 name_indiex constant_pool[4].bytes[length] -> "<init>"
00 05 descriptor_index constant_pool[5].bytes[length] -> "()V"
00 01 attributes_count 1
00 06 attribute_name_index constant_pool[6].bytes[length] -> "Code"
00 00 00 1D attribute_length 29
00 01 max_stack 1
00 01 max_locals 1
剩余7页未读,继续阅读
资源评论
hyp20434
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 冒泡排序(Bubble Sort)是一种简单的排序算法,它重复地遍历要排序的数列.txt
- 基于android5.1适配Rk3288系统的人脸声纹识别系统源码.zip
- 基于Tensorflow架构深度学习声纹识别系统python源码+预训练模型.zip
- 自定义用于读取matlab数据的类,仿照pytorch设计.zip
- 使用Matlab来对通信系统和通信信号进行仿真 对相关算法进行验证 .zip
- 使用Matlab对单频激光倍频的仿真.zip
- 乐享matlab项目,以matlab为编程语言,提供一些数值计算、数学建模等服务.zip
- 本仓库用于存储使用Matlab写的作业、科研代码.zip
- matlab语言实现的曲线PVT插值.zip
- MATLAB-PTB 自用程序模板.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功