BASTORE.java revision 628:2bfaf29cc90b
1266988Smarkj/*
2266988Smarkj * reserved comment block
3266988Smarkj * DO NOT REMOVE OR ALTER!
4266988Smarkj */
5266988Smarkjpackage com.sun.org.apache.bcel.internal.generic;
6266988Smarkj
7266988Smarkj/* ====================================================================
8266988Smarkj * The Apache Software License, Version 1.1
9266988Smarkj *
10266988Smarkj * Copyright (c) 2001 The Apache Software Foundation.  All rights
11266988Smarkj * reserved.
12266988Smarkj *
13266988Smarkj * Redistribution and use in source and binary forms, with or without
14266988Smarkj * modification, are permitted provided that the following conditions
15266988Smarkj * are met:
16266988Smarkj *
17266988Smarkj * 1. Redistributions of source code must retain the above copyright
18266988Smarkj *    notice, this list of conditions and the following disclaimer.
19266988Smarkj *
20266988Smarkj * 2. Redistributions in binary form must reproduce the above copyright
21266988Smarkj *    notice, this list of conditions and the following disclaimer in
22266988Smarkj *    the documentation and/or other materials provided with the
23266988Smarkj *    distribution.
24266988Smarkj *
25266988Smarkj * 3. The end-user documentation included with the redistribution,
26266988Smarkj *    if any, must include the following acknowledgment:
27266988Smarkj *       "This product includes software developed by the
28266988Smarkj *        Apache Software Foundation (http://www.apache.org/)."
29266988Smarkj *    Alternately, this acknowledgment may appear in the software itself,
30266988Smarkj *    if and wherever such third-party acknowledgments normally appear.
31266988Smarkj *
32266988Smarkj * 4. The names "Apache" and "Apache Software Foundation" and
33266988Smarkj *    "Apache BCEL" must not be used to endorse or promote products
34266988Smarkj *    derived from this software without prior written permission. For
35266988Smarkj *    written permission, please contact apache@apache.org.
36266988Smarkj *
37266988Smarkj * 5. Products derived from this software may not be called "Apache",
38266988Smarkj *    "Apache BCEL", nor may "Apache" appear in their name, without
39266988Smarkj *    prior written permission of the Apache Software Foundation.
40266988Smarkj *
41266988Smarkj * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
42266988Smarkj * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
43266988Smarkj * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
44266988Smarkj * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
45266988Smarkj * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46266988Smarkj * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47266988Smarkj * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
48266988Smarkj * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
49266988Smarkj * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
50266988Smarkj * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
51266988Smarkj * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
52266988Smarkj * SUCH DAMAGE.
53266988Smarkj * ====================================================================
54266988Smarkj *
55266988Smarkj * This software consists of voluntary contributions made by many
56266988Smarkj * individuals on behalf of the Apache Software Foundation.  For more
57266988Smarkj * information on the Apache Software Foundation, please see
58266988Smarkj * <http://www.apache.org/>.
59266988Smarkj */
60266988Smarkj
61266988Smarkj/**
62266988Smarkj * BASTORE -  Store into byte or boolean array
63266988Smarkj * <PRE>Stack: ..., arrayref, index, value -&gt; ...</PRE>
64266988Smarkj *
65266988Smarkj * @author  <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
66266988Smarkj */
67266988Smarkjpublic class BASTORE extends ArrayInstruction implements StackConsumer {
68266988Smarkj  /** Store byte or boolean into array
69266988Smarkj   */
70266988Smarkj  public BASTORE() {
71266988Smarkj    super(com.sun.org.apache.bcel.internal.Constants.BASTORE);
72266988Smarkj  }
73266988Smarkj
74288413Smarkj
75266988Smarkj  /**
76266988Smarkj   * Call corresponding visitor method(s). The order is:
77266988Smarkj   * Call visitor methods of implemented interfaces first, then
78266988Smarkj   * call methods according to the class hierarchy in descending order,
79266988Smarkj   * i.e., the most specific visitXXX() call comes last.
80266988Smarkj   *
81266988Smarkj   * @param v Visitor object
82266988Smarkj   */
83266988Smarkj  public void accept(Visitor v) {
84266988Smarkj    v.visitStackConsumer(this);
85266988Smarkj    v.visitExceptionThrower(this);
86266988Smarkj    v.visitTypedInstruction(this);
87266988Smarkj    v.visitArrayInstruction(this);
88266988Smarkj    v.visitBASTORE(this);
89266988Smarkj  }
90266988Smarkj}
91266988Smarkj