KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > bcel > generic > CompoundInstruction


1 /*
2  * Copyright 2000-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17 package org.apache.bcel.generic;
18
19 /**
20  * Wrapper class for `compound' operations, virtual instructions that
21  * don't exist as byte code, but give a useful meaning. For example,
22  * the (virtual) PUSH instruction takes an arbitray argument and produces the
23  * appropiate code at dump time (ICONST, LDC, BIPUSH, ...). Also you can use the
24  * SWITCH instruction as a useful template for either LOOKUPSWITCH or
25  * TABLESWITCH.
26  *
27  * The interface provides the possibilty for the user to write
28  * `templates' or `macros' for such reuseable code patterns.
29  *
30  * @version $Id: CompoundInstruction.java 386056 2006-03-15 11:31:56Z tcurdt $
31  * @author <A HREF="mailto:m.dahm@gmx.de">M. Dahm</A>
32  * @see PUSH
33  * @see SWITCH
34  */

35 public interface CompoundInstruction {
36
37     public InstructionList getInstructionList();
38 }
39
Popular Tags