org.objectweb.asm.tree

Class LookupSwitchInsnNode


public class LookupSwitchInsnNode
extends AbstractInsnNode

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

Field Summary

Label
dflt
Beginning of the default handler block.
List
keys
The values of the keys.
List
labels
Beginnings of the handler blocks.

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

opcode

Constructor Summary

LookupSwitchInsnNode(Label dflt, int[] keys, Label[] labels)
Constructs a new LookupSwitchInsnNode object.

Method Summary

void
accept(CodeVisitor cv)
Makes the given code visitor visit this instruction.

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

accept, getOpcode

Field Details

dflt

public Label dflt
Beginning of the default handler block.

keys

public final List keys

labels

public final List labels

Constructor Details

LookupSwitchInsnNode

public LookupSwitchInsnNode(Label dflt,
                            int[] keys,
                            Label[] labels)
Constructs a new LookupSwitchInsnNode object.
Parameters:
dflt - beginning of the default handler block.
keys - the values of the keys.
labels - beginnings of the handler blocks. labels[i] is the beginning of the handler block for the keys[i] key.

Method Details

accept

public void accept(CodeVisitor cv)
Makes the given code visitor visit this instruction.
Overrides:
accept in interface AbstractInsnNode
Parameters:
cv - a code visitor.