org.objectweb.asm.tree

Class TableSwitchInsnNode

public class TableSwitchInsnNode extends AbstractInsnNode

A node that represents a TABLESWITCH instruction.

Author: Eric Bruneton

Field Summary
LabelNodedflt
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, LabelNode dflt, LabelNode[] labels)
Constructs a new TableSwitchInsnNode.
Method Summary
voidaccept(MethodVisitor mv)
AbstractInsnNodeclone(Map labels)
intgetType()

Field Detail

dflt

public LabelNode dflt
Beginning of the default handler block.

labels

public List labels
Beginnings of the handler blocks. This list is a list of LabelNode 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, LabelNode dflt, LabelNode[] labels)
Constructs a new 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)

clone

public AbstractInsnNode clone(Map labels)

getType

public int getType()