org.objectweb.asm.tree

Class TableSwitchInsnNode


public class TableSwitchInsnNode
extends AbstractInsnNode

A node that represents a TABLESWITCH instruction.
Author:
Eric Bruneton

Field Summary

Label
dflt
Beginning of the default handler block.
List
labels
Beginnings of the handler blocks.
int
max
The maximum key value.
int
min
The minimum key value.

Fields inherited from class org.objectweb.asm.tree.AbstractInsnNode

opcode

Constructor Summary

TableSwitchInsnNode(int min, int max, Label dflt, Label[] labels)
Constructs a new TableSwitchInsnNode.

Method Summary

void
accept(CodeVisitor cv)

Methods inherited from class org.objectweb.asm.tree.AbstractInsnNode

accept, getOpcode

Field Details

dflt

public Label dflt
Beginning of the default handler block.

labels

public final List labels

max

public int max
The maximum key value.

min

public int min
The minimum key value.

Constructor Details

TableSwitchInsnNode

public TableSwitchInsnNode(int min,
                           int max,
                           Label dflt,
                           Label[] 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 Details

accept

public void accept(CodeVisitor cv)
Overrides:
accept in interface AbstractInsnNode