org.objectweb.asm.tree

Class TableSwitchInsnNode

public class TableSwitchInsnNode extends AbstractInsnNode

A node that represents a TABLESWITCH instruction.

Author: Eric Bruneton

Field Summary
Labeldflt
Beginning of the default handler block.
Listlabels
Beginnings of the handler blocks.
intmax
The maximum key value.
intmin
The minimum key value.
Constructor Summary
TableSwitchInsnNode(int min, int max, Label dflt, Label[] labels)
Constructs a new {@link TableSwitchInsnNode}.
Method Summary
voidaccept(MethodVisitor mv)
intgetType()

Field Detail

dflt

public Label dflt
Beginning of the default handler block.

labels

public List labels
Beginnings of the handler blocks. This list is a list of {@link Label} objects.

max

public int max
The maximum key value.

min

public int min
The minimum key value.

Constructor Detail

TableSwitchInsnNode

public TableSwitchInsnNode(int min, int max, Label dflt, Label[] labels)
Constructs a new {@link TableSwitchInsnNode}.

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

Method Detail

accept

public void accept(MethodVisitor mv)

getType

public int getType()