19 * limitations under the License. |
19 * limitations under the License. |
20 */ |
20 */ |
21 |
21 |
22 package com.sun.org.apache.bcel.internal.generic; |
22 package com.sun.org.apache.bcel.internal.generic; |
23 |
23 |
24 |
|
25 /** |
24 /** |
26 * ILOAD - Load int from local variable onto stack |
25 * ILOAD - Load int from local variable onto stack |
27 * <PRE>Stack: ... -> ..., result</PRE> |
26 * <PRE>Stack: ... -> ..., result</PRE> |
28 * |
27 * |
29 * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> |
28 * @version $Id: ILOAD.java 1747278 2016-06-07 17:28:43Z britter $ |
30 */ |
29 */ |
31 public class ILOAD extends LoadInstruction { |
30 public class ILOAD extends LoadInstruction { |
32 /** |
|
33 * Empty constructor needed for the Class.newInstance() statement in |
|
34 * Instruction.readInstruction(). Not to be used otherwise. |
|
35 */ |
|
36 ILOAD() { |
|
37 super(com.sun.org.apache.bcel.internal.Constants.ILOAD, com.sun.org.apache.bcel.internal.Constants.ILOAD_0); |
|
38 } |
|
39 |
31 |
40 /** Load int from local variable |
32 /** |
41 * @param n index of local variable |
33 * Empty constructor needed for the Class.newInstance() statement in |
42 */ |
34 * Instruction.readInstruction(). Not to be used otherwise. |
43 public ILOAD(int n) { |
35 */ |
44 super(com.sun.org.apache.bcel.internal.Constants.ILOAD, com.sun.org.apache.bcel.internal.Constants.ILOAD_0, n); |
36 ILOAD() { |
45 } |
37 super(com.sun.org.apache.bcel.internal.Const.ILOAD, com.sun.org.apache.bcel.internal.Const.ILOAD_0); |
|
38 } |
46 |
39 |
47 /** |
40 |
48 * Call corresponding visitor method(s). The order is: |
41 /** Load int from local variable |
49 * Call visitor methods of implemented interfaces first, then |
42 * @param n index of local variable |
50 * call methods according to the class hierarchy in descending order, |
43 */ |
51 * i.e., the most specific visitXXX() call comes last. |
44 public ILOAD(final int n) { |
52 * |
45 super(com.sun.org.apache.bcel.internal.Const.ILOAD, com.sun.org.apache.bcel.internal.Const.ILOAD_0, n); |
53 * @param v Visitor object |
46 } |
54 */ |
47 |
55 public void accept(Visitor v) { |
48 |
56 super.accept(v); |
49 /** |
57 v.visitILOAD(this); |
50 * Call corresponding visitor method(s). The order is: |
58 } |
51 * Call visitor methods of implemented interfaces first, then |
|
52 * call methods according to the class hierarchy in descending order, |
|
53 * i.e., the most specific visitXXX() call comes last. |
|
54 * |
|
55 * @param v Visitor object |
|
56 */ |
|
57 @Override |
|
58 public void accept( final Visitor v ) { |
|
59 super.accept(v); |
|
60 v.visitILOAD(this); |
|
61 } |
59 } |
62 } |