KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jas > TableswitchInsn


1 /**
2  * Some instructions are perniticky enough that its simpler
3  * to write them separately instead of smushing them with
4  * all the rest. The tableswitch instruction is one of them.
5  * @author $Author: fqian $
6  * @version $Revision: 1.1 $
7  */

8
9 package jas;
10
11 import java.io.*;
12
13
14 public class TableswitchInsn extends Insn implements RuntimeConstants
15 {
16   /**
17    * @param min minimum index value
18    * @param max maximum index value
19    * @param def default Label for switch
20    * @param j array of Labels, one for each possible index.
21    */

22
23   public TableswitchInsn(int min, int max, Label def, Label j[])
24   {
25     opc = opc_tableswitch;
26     operand = new TableswitchOperand(this, min, max, def, j);
27   }
28 }
29
Popular Tags