FileDocCategorySizeDatePackage
TableSwitchInsnNode.javaAPI DocGlassfish v2 API3320Thu Mar 02 11:51:16 GMT 2006oracle.toplink.libraries.asm.tree

TableSwitchInsnNode

public class TableSwitchInsnNode extends AbstractInsnNode
A node that represents a TABLESWITCH instruction.
author
Eric Bruneton

Fields Summary
public int
min
The minimum key value.
public int
max
The maximum key value.
public Label
dflt
Beginning of the default handler block.
public final List
labels
Beginnings of the handler blocks. This list is a list of {@link Label Label} objects.
Constructors Summary
public TableSwitchInsnNode(int min, int max, Label dflt, Label[] labels)
Constructs a new {@link TableSwitchInsnNode TableSwitchInsnNode}.

param
min the minimum key value.
param
max the maximum key value.
param
dflt beginning of the default handler block.
param
labels beginnings of the handler blocks. labels[i] is the beginning of the handler block for the min + i key.

    super(Constants.TABLESWITCH);
    this.min = min;
    this.max = max;
    this.dflt = dflt;
    this.labels = new ArrayList();
    if (labels != null) {
      this.labels.addAll(Arrays.asList(labels));
    }
  
Methods Summary
public voidaccept(oracle.toplink.libraries.asm.CodeVisitor cv)

    Label[] labels = new Label[this.labels.size()];
    this.labels.toArray(labels);
    cv.visitTableSwitchInsn(min, max, dflt, labels);