1 /*
2  * reserved comment block
3  * DO NOT REMOVE OR ALTER!
4  */
5 /*
6  * Licensed to the Apache Software Foundation (ASF) under one or more
7  * contributor license agreements.  See the NOTICE file distributed with
8  * this work for additional information regarding copyright ownership.
9  * The ASF licenses this file to You under the Apache License, Version 2.0
10  * (the "License"); you may not use this file except in compliance with
11  * the License.  You may obtain a copy of the License at
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 package com.sun.org.apache.bcel.internal.generic;
22 
23 /**
24  * BALOAD - Load byte or boolean from array
25  * <PRE>Stack: ..., arrayref, index -&gt; ..., value</PRE>
26  *
27  * @version $Id: BALOAD.java 1747278 2016-06-07 17:28:43Z britter $
28  */
29 public class BALOAD extends ArrayInstruction implements StackProducer {
30 
31     /**
32      * Load byte or boolean from array
33      */
BALOAD()34     public BALOAD() {
35         super(com.sun.org.apache.bcel.internal.Const.BALOAD);
36     }
37 
38     /**
39      * Call corresponding visitor method(s). The order is: Call visitor methods
40      * of implemented interfaces first, then call methods according to the class
41      * hierarchy in descending order, i.e., the most specific visitXXX() call
42      * comes last.
43      *
44      * @param v Visitor object
45      */
46     @Override
accept(final Visitor v)47     public void accept(final Visitor v) {
48         v.visitStackProducer(this);
49         v.visitExceptionThrower(this);
50         v.visitTypedInstruction(this);
51         v.visitArrayInstruction(this);
52         v.visitBALOAD(this);
53     }
54 }
55