, " " " " , . ( JVM, -. , .)
javap ( Java.class) :
public void test();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
0: bipush 9
2: invokestatic #8 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
5: astore_1
6: goto 10
9: astore_2
10: iconst_1
11: istore_2
12: return
Exception table:
from to target type
0 6 9 Class java/lang/Exception
LineNumberTable:
line 27: 0
line 30: 6
line 28: 9
line 31: 10
line 32: 12
LocalVariableTable:
Start Length Slot Name Signature
10 0 2 ex Ljava/lang/Exception;
0 13 0 this LExample;
6 3 1 i Ljava/lang/Integer;
12 1 2 something I
( 31 ), 10 - ( LineNumberTable). LocalVariableTable , i 6 9, . , i , 1, ; , , . ( -/// .., - , - , . , , , .)
source
share