类文件结构-访问标识和继承信息
生活随笔
收集整理的這篇文章主要介紹了
类文件结构-访问标识和继承信息
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
訪問標識與繼承信息
21 表示該 class 是一個類,公共的
0000660 29 56 00 21 00 05 00 06 00 00 00 00 00 02 00 01
05 表示根據常量池中 #5 找到本類全限定名
0000660 29 56 00 21 00 05 00 06 00 00 00 00 00 02 00 01
06 表示根據常量池中 #6 找到父類全限定
0000660 29 56 00 21 00 05 00 06 00 00 00 00 00 02 00 01
表示接口的數量,本類為 0
0000660 29 56 00 21 00 05 00 06 00 00 00 00 00 02 00 01
| ACC_PUBLIC | 0x0001 | Declared public ; may be accessed from outside its package. |
| ACC_FINAL | 0x0010 | Declared final ; no subclasses allowed. |
| ACC_SUPER | 0x0020 | Treat superclass methods specially when invoked by the invokespecial instruction.? |
| ACC_INTERFACE | 0x0200 | Is an interface, not a class. |
| ACC_ABSTRACT | 0x0400 | Declared abstract ; must not be instantiated. |
| ACC_SYNTHETIC | 0x1000 | Declared synthetic; not present in the source code. |
| ACC_ANNOTATION | 0x2000 | Declared as an annotation type. |
| ACC_ENUM | 0x4000 | Declared as an enum type. |
?
總結
以上是生活随笔為你收集整理的类文件结构-访问标识和继承信息的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 类文件结构-常量池
- 下一篇: 类文件结构-field