16 * distributed under the License is distributed on an "AS IS" BASIS, |
16 * distributed under the License is distributed on an "AS IS" BASIS, |
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
18 * See the License for the specific language governing permissions and |
18 * See the License for the specific language governing permissions and |
19 * limitations under the License. |
19 * limitations under the License. |
20 */ |
20 */ |
21 |
|
22 package com.sun.org.apache.bcel.internal.generic; |
21 package com.sun.org.apache.bcel.internal.generic; |
23 |
22 |
|
23 import com.sun.org.apache.bcel.internal.Const; |
24 |
24 |
25 /** |
25 /** |
26 * ASTORE - Store reference into local variable |
26 * ASTORE - Store reference into local variable |
27 * <PRE>Stack ..., objectref -> ... </PRE> |
27 * <PRE>Stack ..., objectref -> ... </PRE> |
28 * |
28 * |
29 * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> |
29 * @version $Id: ASTORE.java 1747278 2016-06-07 17:28:43Z britter $ |
30 */ |
30 */ |
31 public class ASTORE extends StoreInstruction { |
31 public class ASTORE extends StoreInstruction { |
32 /** |
|
33 * Empty constructor needed for the Class.newInstance() statement in |
|
34 * Instruction.readInstruction(). Not to be used otherwise. |
|
35 */ |
|
36 ASTORE() { |
|
37 super(com.sun.org.apache.bcel.internal.Constants.ASTORE, com.sun.org.apache.bcel.internal.Constants.ASTORE_0); |
|
38 } |
|
39 |
32 |
40 /** Store reference into local variable |
33 /** |
41 * @param n index of local variable |
34 * Empty constructor needed for the Class.newInstance() statement in |
42 */ |
35 * Instruction.readInstruction(). Not to be used otherwise. |
43 public ASTORE(int n) { |
36 */ |
44 super(com.sun.org.apache.bcel.internal.Constants.ASTORE, com.sun.org.apache.bcel.internal.Constants.ASTORE_0, n); |
37 ASTORE() { |
45 } |
38 super(Const.ASTORE, Const.ASTORE_0); |
|
39 } |
46 |
40 |
47 /** |
41 /** |
48 * Call corresponding visitor method(s). The order is: |
42 * Store reference into local variable |
49 * Call visitor methods of implemented interfaces first, then |
43 * |
50 * call methods according to the class hierarchy in descending order, |
44 * @param n index of local variable |
51 * i.e., the most specific visitXXX() call comes last. |
45 */ |
52 * |
46 public ASTORE(final int n) { |
53 * @param v Visitor object |
47 super(Const.ASTORE, Const.ASTORE_0, n); |
54 */ |
48 } |
55 public void accept(Visitor v) { |
49 |
56 super.accept(v); |
50 /** |
57 v.visitASTORE(this); |
51 * Call corresponding visitor method(s). The order is: Call visitor methods |
58 } |
52 * of implemented interfaces first, then call methods according to the class |
|
53 * hierarchy in descending order, i.e., the most specific visitXXX() call |
|
54 * comes last. |
|
55 * |
|
56 * @param v Visitor object |
|
57 */ |
|
58 @Override |
|
59 public void accept(final Visitor v) { |
|
60 super.accept(v); |
|
61 v.visitASTORE(this); |
|
62 } |
59 } |
63 } |