areturn : return from method with object reference result : index : visitInsn()
.class Example .super java/lang/Object ; This method takes an integer parameter n, and returns a new array of ints of length n. .method public static makeIntArray(I)[I aload_0 ; push the array size (i.e. n) parameter onto the stack newarray int ; make the array areturn ; return the array .endmethod ; an example of calling makeIntArray to make a 10 element array of ints: bipush 10 invokestatic Example/makeIntArray(I)[I astore_1 ; store array in local variable 1
Before | After |
objectref | n/a |
... | ... |
Type | Description |
u1 | areturn opcode = 0xB0 (176) |